aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'env_universal_common.cpp')
-rw-r--r--env_universal_common.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/env_universal_common.cpp b/env_universal_common.cpp
index f600e70a..e82333a7 100644
--- a/env_universal_common.cpp
+++ b/env_universal_common.cpp
@@ -398,6 +398,9 @@ start_conversion:
{
debug(0, L"%d %d", in_len, out_len);
debug(0, L"Error while converting from to string");
+
+ /* Terminate the output string. */
+ free(out);
return 0;
}