cvs: php-src(PHP_4_3) /ext/mnogosearch php_mnogo.c
| From: | Sergey Kartashoff | Date: | Mon, 30 Jun 2003 17:44:19 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/mnogosearch php_mnogo.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22183@lists.php.net to get a copy of this message | ||
gluke Mon Jun 30 13:44:19 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/mnogosearch php_mnogo.c
Log:
- A memory leaks at UdmCatPath and UdmCatList functions have been fixed.
Index: php-src/ext/mnogosearch/php_mnogo.c
diff -u php-src/ext/mnogosearch/php_mnogo.c:1.66.2.2 php-src/ext/mnogosearch/php_mnogo.c:1.66.2.3
--- php-src/ext/mnogosearch/php_mnogo.c:1.66.2.2 Sat Jun 14 14:45:23 2003
+++ php-src/ext/mnogosearch/php_mnogo.c Mon Jun 30 13:44:19 2003
@@ -1,5 +1,5 @@
/* $Source: /usr/repository/php-src/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.66.2.2 2003/06/14 18:45:23 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.66.2.3 2003/06/30 17:44:19 gluke Exp $ */
/*
+----------------------------------------------------------------------+
@@ -2381,6 +2381,7 @@
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 @@
add_next_index_stringl(return_value, C.Category[i].name,strlen(C.Category[i].name),1);
}
} else {
+ free(buf);
RETURN_FALSE;
}
}