diff options
author | 2013-10-19 22:10:26 +0200 | |
---|---|---|
committer | 2013-10-19 22:10:26 +0200 | |
commit | fd25a6425c7bafff2746b5c349e7313b0110c041 (patch) | |
tree | d0cde1d5ca14e1b5201213c1bd6919db6e5106d0 /env_universal_common.cpp | |
parent | 2a6eb83fb4a3468e3598c17677f06f5c8e96a807 (diff) |
Fix two memory leaks.
Diffstat (limited to 'env_universal_common.cpp')
-rw-r--r-- | env_universal_common.cpp | 3 |
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; } |