*fixed a memory leak.

This commit is contained in:
Wang Renxin 2015-10-29 13:22:25 +08:00
parent de9a7edd0f
commit 5215e5cae9

View File

@ -7309,6 +7309,7 @@ int mb_push_string(struct mb_interpreter_t* s, void** l, char* val) {
arg.type = MB_DT_STRING; arg.type = MB_DT_STRING;
arg.value.string = val; arg.value.string = val;
mb_check(mb_push_value(s, l, arg)); mb_check(mb_push_value(s, l, arg));
_mark_lazy_destroy_string(s, val);
return result; return result;
} }