From: Dale Weiler Date: Sun, 26 Nov 2017 22:30:30 +0000 (-0500) Subject: Merge pull request #180 from xonotic/mem_leak_fix_on_failure_paths X-Git-Tag: xonotic-v0.8.5~29^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9127bf28ad5c1f7626487bbc5f29e72e9912d67;p=xonotic%2Fgmqcc.git Merge pull request #180 from xonotic/mem_leak_fix_on_failure_paths two small memory leak fixes on failure paths --- d9127bf28ad5c1f7626487bbc5f29e72e9912d67 diff --cc ir.cpp index d94558e,3a166c7..facbc33 --- a/ir.cpp +++ b/ir.cpp @@@ -1474,9 -1449,10 +1474,10 @@@ ir_instr* ir_block_create_call(ir_bloc !ir_instr_op(in, 1, func, false)) { delete in; + delete out; return nullptr; } - vec_push(self->m_instr, in); + self->m_instr.push_back(in); /* if (noreturn) { if (!ir_block_create_return(self, ctx, nullptr)) {