Skip to content

Commit

Permalink
i#3699: Call instrlist_clear_and_destroy in it_arm.c. (#7147)
Browse files Browse the repository at this point in the history
Otherwise "memory leak detected" in api.it test,
since dr_standalone_exit was added by 76def08.

Issue: #3699
  • Loading branch information
egrimley-arm authored Dec 17, 2024
1 parent a3d7cc4 commit 9931511
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suite/tests/api/it_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ test_dr_insert_it_instrs_cbr(void *dcontext)
DR_ASSERT(instr_get_opcode(instr_it3) == OP_it);
DR_ASSERT(instr_it_block_get_count(instr_it3) == 3);
instrlist_encode(dcontext, ilist, buffer, true);
instrlist_clear_and_destroy(dcontext, ilist);
}

void
Expand Down Expand Up @@ -168,6 +169,7 @@ test_dr_insert_it_instrs_cti(void *dcontext)
DR_ASSERT(instr_get_opcode(instr_it3) == OP_it);
DR_ASSERT(instr_it_block_get_count(instr_it3) == 4);
instrlist_encode(dcontext, ilist, buffer, true);
instrlist_clear_and_destroy(dcontext, ilist);
}

int
Expand Down

0 comments on commit 9931511

Please sign in to comment.