aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.cpp
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-10-19 22:10:26 +0200
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-10-19 22:10:26 +0200
commitfd25a6425c7bafff2746b5c349e7313b0110c041 (patch)
treed0cde1d5ca14e1b5201213c1bd6919db6e5106d0 /env_universal_common.cpp
parent2a6eb83fb4a3468e3598c17677f06f5c8e96a807 (diff)
Fix two memory leaks.
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;
}