]> granicus.if.org Git - php/commitdiff
- Memory leaks in UdmCatPath and UdmCatList functions have been fixed.
authorSergey Kartashoff <gluke@php.net>
Mon, 30 Jun 2003 17:12:18 +0000 (17:12 +0000)
committerSergey Kartashoff <gluke@php.net>
Mon, 30 Jun 2003 17:12:18 +0000 (17:12 +0000)
ext/mnogosearch/php_mnogo.c

index 0799a952a4a686baebdf827efb5d0ac598776856..e7509887a13319455302e2572efbe5a7792b1a75 100644 (file)
@@ -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;
                    }
                }