From f24d8b4b7649e458636d0375dd51b67f59d98982 Mon Sep 17 00:00:00 2001 From: jdh8d <jdh8d@git.zephyr-software.com> Date: Wed, 25 Jan 2012 18:56:04 +0000 Subject: [PATCH] Memory leak fix Former-commit-id: 799443075daf7aa8a26b1af77db22173a828d2e0 --- libIRDB/test/fill_in_cfg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libIRDB/test/fill_in_cfg.cpp b/libIRDB/test/fill_in_cfg.cpp index ec45078d0..6220faffe 100644 --- a/libIRDB/test/fill_in_cfg.cpp +++ b/libIRDB/test/fill_in_cfg.cpp @@ -285,7 +285,10 @@ void add_new_instructions(VariantIR_t *virp) /* if we found the instruction, but can't disassemble it, then we skip out for now */ if(instr_len==OUT_OF_RANGE || instr_len==UNKNOWN_OPCODE) + { + free(data); break; + } /* intel instructions have a max size of 16 */ assert(1<=instr_len && instr_len<=16); -- GitLab