fix memory leak

This commit is contained in:
HummyPkg 2017-03-11 09:52:41 +00:00
parent 260b73a346
commit 165b0d28f0
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ Xconv_Cmd(Jim_Interp *j, int argc, Jim_Obj *const argv[])
chars = utf8_strlen(dst, len);
ret = Jim_NewStringObjUtf8(j, dst, chars);
Jim_Free(dst);
#else
ret = Jim_NewStringObjNoAlloc(j, dst, len);
#endif