gluke Mon Jun 30 13:12:18 2003 EDT
Modified files:
/php-src/ext/mnogosearch php_mnogo.c
Log:
- Memory leaks in 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.75
php-src/ext/mnogosearch/php_mnogo.c:1.76
--- php-src/ext/mnogosearch/php_mnogo.c:1.75 Mon Jun 16 11:40:35 2003
+++ php-src/ext/mnogosearch/php_mnogo.c Mon Jun 30 13:12:17 2003
@@ -1,5 +1,5 @@
/* $Source: /usr/repository/php-src/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.75 2003/06/16 15:40:35 andrey Exp $ */
+/* $Id: php_mnogo.c,v 1.76 2003/06/30 17:12:17 gluke Exp $ */
/*
+----------------------------------------------------------------------+
@@ -2381,7 +2381,7 @@
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 @@
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;
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php