Skip to content

Commit

Permalink
Fix memory leak in mips64_get_idling_pc
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviojs committed Mar 11, 2024
1 parent a80b0d0 commit 681803e
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 681803e

Please sign in to comment.