Fix memory leak detected in PR 1510.

LSAN/ASAN detected, on an error code path, that not all elements of a
struct ChannelCallFrame were freed.
This commit is contained in:
oni-link 2014-11-24 18:11:14 +01:00
parent 41f1678767
commit e2e63832e3

View File

@ -241,6 +241,7 @@ Object channel_send_call(uint64_t id,
if (frame.errored) {
api_set_error(err, Exception, "%s", frame.result.data.string.data);
api_free_object(frame.result);
return NIL;
}