From: Sergey Kartashoff Date: Mon, 30 Jun 2003 17:44:20 +0000 (+0000) Subject: - A memory leaks at UdmCatPath and UdmCatList functions have been fixed. X-Git-Tag: php-4.3.3RC2~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94a9447396667f62460275a7cf877e78b35268bb;p=php - A memory leaks at UdmCatPath and UdmCatList functions have been fixed. --- diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 7ea7a37a93..2a0a0e55b6 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -2381,6 +2381,7 @@ DLEXPORT PHP_FUNCTION(udm_cat_list) add_next_index_stringl(return_value, C.Category[i].name,strlen(C.Category[i].name),1); } } else { + free(buf); RETURN_FALSE; } } @@ -2455,6 +2456,7 @@ DLEXPORT PHP_FUNCTION(udm_cat_path) add_next_index_stringl(return_value, C.Category[i].name,strlen(C.Category[i].name),1); } } else { + free(buf); RETURN_FALSE; } }