CID 1216601 Fix a possible memory leak in mod_basic

This commit is contained in:
William King 2015-05-27 14:56:38 -07:00 committed by Michael Jerris
parent 3e93e9f5b4
commit cdead84d3b
1 changed files with 1 additions and 0 deletions

View File

@ -5514,6 +5514,7 @@ int _std_str(mb_interpreter_t* s, void** l) {
sprintf(chr, "%g", arg.value.float_point);
} else {
result = MB_FUNC_ERR;
free(chr);
goto _exit;
}
mb_check(mb_push_string(s, l, chr));