stas Tue Feb 20 20:30:36 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/com_dotnet com_dotnet.c
Log:
fix unallocated free
http://cvs.php.net/viewvc.cgi/php-src/ext/com_dotnet/com_dotnet.c?r1=1.14.2.1.2.2&r2=1.14.2.1.2.3&diff_format=u
Index: php-src/ext/com_dotnet/com_dotnet.c
diff -u php-src/ext/com_dotnet/com_dotnet.c:1.14.2.1.2.2
php-src/ext/com_dotnet/com_dotnet.c:1.14.2.1.2.3
--- php-src/ext/com_dotnet/com_dotnet.c:1.14.2.1.2.2 Mon Jan 1 09:35:48 2007
+++ php-src/ext/com_dotnet/com_dotnet.c Tue Feb 20 20:30:36 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: com_dotnet.c,v 1.14.2.1.2.2 2007/01/01 09:35:48 sebastian Exp $ */
+/* $Id: com_dotnet.c,v 1.14.2.1.2.3 2007/02/20 20:30:36 stas Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -275,8 +275,9 @@
char buf[1024];
char *err = php_win_err(hr);
snprintf(buf, sizeof(buf), "Failed to instantiate .Net object
[%s] [0x%08x] %s", where, hr, err);
- if (err)
+ if (err && err[0]) {
LocalFree(err);
+ }
php_com_throw_exception(hr, buf TSRMLS_CC);
ZVAL_NULL(object);
return;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php