andrey Tue Sep 30 08:43:59 2003 EDT
Modified files:
/php-src/ext/standard array.c
Log:
Memory leak fixed (no need of MFH since this is code specific to PHP5)
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.249 php-src/ext/standard/array.c:1.250
--- php-src/ext/standard/array.c:1.249 Fri Sep 26 04:09:55 2003
+++ php-src/ext/standard/array.c Tue Sep 30 08:43:58 2003
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.249 2003/09/26 08:09:55 hholzgra Exp $ */
+/* $Id: array.c,v 1.250 2003/09/30 12:43:58 andrey Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -2907,6 +2907,7 @@
} else if (data_compare_type == DIFF_COMP_DATA_USER) {
/* array_udiff */
if (argc < 3) {
+ efree(args);
WRONG_PARAM_COUNT;
}
arr_argc = argc - 1;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php