summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_variant.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/com_dotnet/com_variant.c')
-rw-r--r--ext/com_dotnet/com_variant.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index f4f7d5a9dd..58adf94d8f 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -490,7 +490,7 @@ PHP_FUNCTION(com_variant_create_instance)
werr = php_win32_error_to_msg(res);
spprintf(&msg, 0, "Variant type conversion failed: %s", werr);
- LocalFree(werr);
+ php_win32_error_msg_free(werr);
php_com_throw_exception(res, msg);
efree(msg);
@@ -1078,7 +1078,7 @@ PHP_FUNCTION(variant_set_type)
werr = php_win32_error_to_msg(res);
spprintf(&msg, 0, "Variant type conversion failed: %s", werr);
- LocalFree(werr);
+ php_win32_error_msg_free(werr);
php_com_throw_exception(res, msg);
efree(msg);
@@ -1112,7 +1112,7 @@ PHP_FUNCTION(variant_cast)
werr = php_win32_error_to_msg(res);
spprintf(&msg, 0, "Variant type conversion failed: %s", werr);
- LocalFree(werr);
+ php_win32_error_msg_free(werr);
php_com_throw_exception(res, msg);
efree(msg);