Skip to content

Commit 45a50d0

Browse files
authored
phar: Remove pointless efree() (#20232)
`error` is NULL at this point, otherwise we couldn't have gotten and *shouldn't* have gotten here in the first place.
1 parent 5ce8a86 commit 45a50d0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/phar/dirstream.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mo
450450

451451
if (NULL == zend_hash_add_mem(&phar->manifest, entry.filename, &entry, sizeof(phar_entry_info))) {
452452
php_stream_wrapper_log_error(wrapper, options, "phar error: cannot create directory \"%s\" in phar \"%s\", adding to manifest failed", ZSTR_VAL(entry.filename), phar->fname);
453-
efree(error);
454453
zend_string_efree(entry.filename);
455454
return 0;
456455
}

0 commit comments

Comments
 (0)