]> granicus.if.org Git - php/commitdiff
Urgh!
authorWez Furlong <wez@php.net>
Sun, 9 May 2004 14:28:19 +0000 (14:28 +0000)
committerWez Furlong <wez@php.net>
Sun, 9 May 2004 14:28:19 +0000 (14:28 +0000)
Use the correct function to free messages from php_win_err(), otherwise
we say hello to Mr. S. Fault.

ext/com_dotnet/com_misc.c

index f46c6067135e23aabd3b54fef7625fdf5020f84c..f262a3751a248be4392d71ebd1d2514444f52525 100644 (file)
@@ -38,7 +38,7 @@ void php_com_throw_exception(HRESULT code, char *message TSRMLS_DC)
        }
        zend_throw_exception(php_com_exception_class_entry, message, (long)code TSRMLS_CC);
        if (free_msg) {
-               efree(message);
+               LocalFree(message);
        }
 }