summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2003-09-30 12:43:58 +0000
committerAndrey Hristov <andrey@php.net>2003-09-30 12:43:58 +0000
commit02827c46be4d870bdd6ebfe5b81d2b69569b67d0 (patch)
tree972620cff3d6063358b262289c56475acedb869f /ext/standard/array.c
parente21669502b23594a5c8622c7c233c261e4928b38 (diff)
downloadphp-git-02827c46be4d870bdd6ebfe5b81d2b69569b67d0.tar.gz
Memory leak fixed (no need of MFH since this is code specific to PHP5)
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 3a6d4c74d4..ab2e74a644 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -2907,6 +2907,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior, int data_
} else if (data_compare_type == DIFF_COMP_DATA_USER) {
/* array_udiff */
if (argc < 3) {
+ efree(args);
WRONG_PARAM_COUNT;
}
arr_argc = argc - 1;