diff options
| author | Zeev Suraski <zeev@php.net> | 2001-01-15 10:50:39 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-01-15 10:50:39 +0000 |
| commit | f8522c7fa9b00b6730bdf27bce511aa978d2574c (patch) | |
| tree | 662d140c9c99c5f8d1b8a2eee1546aea7ad9de29 | |
| parent | 0592feb2a1df51b8d35b20812f54012c60ee1f30 (diff) | |
| download | php-git-f8522c7fa9b00b6730bdf27bce511aa978d2574c.tar.gz | |
Use free_estring()
| -rw-r--r-- | main/rfc1867.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index 10a5843946..e63487fbe4 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -83,12 +83,6 @@ static void register_http_post_files_variable_ex(char *var, zval *val, zval *htt } -static void free_filename(char **filename) -{ - efree(*filename); -} - - static int unlink_filename(char **filename) { V_UNLINK(*filename); @@ -124,7 +118,7 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S zend_hash_init(&PG(rfc1867_protected_variables), 5, NULL, NULL, 0); ALLOC_HASHTABLE(SG(rfc1867_uploaded_files)); - zend_hash_init(SG(rfc1867_uploaded_files), 5, NULL, (dtor_func_t) free_filename, 0); + zend_hash_init(SG(rfc1867_uploaded_files), 5, NULL, (dtor_func_t) free_estring, 0); ALLOC_ZVAL(http_post_files); array_init(http_post_files); |
