Skip to content

Commit

Permalink
bugfix for free
Browse files Browse the repository at this point in the history
  • Loading branch information
dechaoqiu committed Jun 4, 2014
1 parent 5da331e commit a8cf9ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macho.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,9 @@ void free_dwarf_abbrev_hash(struct dwarf2_per_objfile *dwarf2_per_objfile){
struct abbrev_info *dwarf2_abbrevs= dwarf2_per_objfile->dwarf2_abbrevs[i];
struct abbrev_info *current = dwarf2_abbrevs;
while(current != NULL){
current = current->next;
struct abbrev_info *current_next = current->next;
free(current);
current = current_next;
}
i++;
}
Expand Down

0 comments on commit a8cf9ca

Please sign in to comment.