diff --git a/src/processor/disassembler_x86.cc b/src/processor/disassembler_x86.cc index 7e41e4bf..45a235db 100644 --- a/src/processor/disassembler_x86.cc +++ b/src/processor/disassembler_x86.cc @@ -48,6 +48,9 @@ DisassemblerX86::DisassemblerX86(const u_int8_t *bytecode, } DisassemblerX86::~DisassemblerX86() { + if (instr_valid_) + libdis::x86_oplist_free(¤t_instr_); + libdis::x86_cleanup(); }