cvs: php4 /main rfc1867.c

From: Date: Mon, 15 Jan 2001 10:50:39 +0000
Subject: cvs: php4 /main rfc1867.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3638@lists.php.net to get a copy of this message
zeev Mon Jan 15 02:50:39 2001 EDT Modified files: /php4/main rfc1867.c Log: Use free_estring() Index: php4/main/rfc1867.c diff -u php4/main/rfc1867.c:1.57 php4/main/rfc1867.c:1.58 --- php4/main/rfc1867.c:1.57 Sat Jan 13 02:19:17 2001 +++ php4/main/rfc1867.c Mon Jan 15 02:50:39 2001 @@ -15,7 +15,7 @@ | Authors: Rasmus Lerdorf <rasmus@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.57 2001/01/13 10:19:17 sas Exp $ */ +/* $Id: rfc1867.c,v 1.58 2001/01/15 10:50:39 zeev Exp $ */ #include <stdio.h> #include "php.h" @@ -83,12 +83,6 @@ } -static void free_filename(char **filename) -{ - efree(*filename); -} - - static int unlink_filename(char **filename) { V_UNLINK(*filename); @@ -124,7 +118,7 @@ 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);

« previous php.cvs (#3638) next »