]> granicus.if.org Git - php/commitdiff
Memory leak fixed (no need of MFH since this is code specific to PHP5)
authorAndrey Hristov <andrey@php.net>
Tue, 30 Sep 2003 12:43:58 +0000 (12:43 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 30 Sep 2003 12:43:58 +0000 (12:43 +0000)
ext/standard/array.c

index 3a6d4c74d40e96f27b461ba4643599e917ff4b1a..ab2e74a644f41bb2f3b3b0a740fe900feeaecb63 100644 (file)
@@ -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;