From: Sergey Kartashoff Date: Mon, 30 Jun 2003 17:12:18 +0000 (+0000) Subject: - Memory leaks in UdmCatPath and UdmCatList functions have been fixed. X-Git-Tag: BEFORE_ARG_INFO~529 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5e58c80ef2118548a5644478047c289fbbcc3ed;p=php - Memory leaks in UdmCatPath and UdmCatList functions have been fixed. --- diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 0799a952a4..e7509887a1 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -2381,7 +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 { - /* Possible leak ? 'buf' not free()-d */ + free(buf); RETURN_FALSE; } } @@ -2456,7 +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 { - /* Possible leak ? 'buf' not free()-d */ + free(buf); RETURN_FALSE; } }