summaryrefslogtreecommitdiff
path: root/ext/mnogosearch/php_mnogo.c
diff options
context:
space:
mode:
authorSergey Kartashoff <gluke@php.net>2003-06-30 17:12:18 +0000
committerSergey Kartashoff <gluke@php.net>2003-06-30 17:12:18 +0000
commite5e58c80ef2118548a5644478047c289fbbcc3ed (patch)
treef4bb755b32bd3321dfb732465b9e97162e3df705 /ext/mnogosearch/php_mnogo.c
parent8dca948cf941ee8d97d45a13bddbc5d7acced099 (diff)
downloadphp-git-e5e58c80ef2118548a5644478047c289fbbcc3ed.tar.gz
- Memory leaks in UdmCatPath and UdmCatList functions have been fixed.
Diffstat (limited to 'ext/mnogosearch/php_mnogo.c')
-rw-r--r--ext/mnogosearch/php_mnogo.c4
1 files 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;
}
}