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

index 7ea7a37a93e3b49f2b292f43797000b99d78cab8..2a0a0e55b63bdc55f90a449db8c16599faf3a9dd 100644 (file)
@@ -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;
                    }
                }