From e5e58c80ef2118548a5644478047c289fbbcc3ed Mon Sep 17 00:00:00 2001 From: Sergey Kartashoff Date: Mon, 30 Jun 2003 17:12:18 +0000 Subject: [PATCH] - Memory leaks in UdmCatPath and UdmCatList functions have been fixed. --- ext/mnogosearch/php_mnogo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.50.1