dynamorio/core/ir/instrlist.c
/* frees the Instrs in the instrlist_t */
frees the Instrs in the instrlist_t
frees the Instrs in the instrlist_t
void
instrlist_clear(dcontext_t *dcontext, instrlist_t *ilist)
{
    instr_t *instr;
    while (NULL != (instr = instrlist_first(ilist))) {
        instrlist_remove(ilist, instr);
        instr_destroy(dcontext, instr);
    }
}
void instrlist_clear ( dcontext_t * dcontext , instrlist_t * ilist ) { instr_t * instr ; while ( NULL != ( instr = instrlist_first ( ilist ) ) ) { instrlist_remove ( ilist , instr ) ; instr_destroy ( dcontext , instr ) ; } }
frees the Instrs in the instrlist_t
frees the Instrs in the instrlist_t