Skip to content

Commit

Permalink
Merge pull request #160 from flaviojs/fix-memory-leak-mips64_get_idli…
Browse files Browse the repository at this point in the history
…ng_pc

Fix memory leak in mips64_get_idling_pc
  • Loading branch information
grossmj authored Mar 11, 2024
2 parents a80b0d0 + 681803e commit f78b212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/mips64.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ int mips64_get_idling_pc(cpu_gen_t *cpu)

/* Re-enable IRQ */
mcpu->irq_disable = FALSE;
free(pc_hash);
return(0);
}

Expand Down
1 change: 1 addition & 0 deletions unstable/mips64.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ int mips64_get_idling_pc(cpu_gen_t *cpu)

/* Re-enable IRQ */
mcpu->irq_disable = FALSE;
free(pc_hash);
return(0);
}

Expand Down

0 comments on commit f78b212

Please sign in to comment.