Skip to content

Commit

Permalink
Fix for issue 8 reported on github. Trying to free one too many array…
Browse files Browse the repository at this point in the history
… indices on program exit.

	modified:   src/menu.c
  • Loading branch information
bartobri committed Nov 15, 2017
1 parent e8fe17b commit 08c6905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void menu_execute(int lo) {
void menu_free_all(void) {
int i;

for (i = 0; i <= menu_count; ++i) {
for (i = 0; i < menu_count; ++i) {
free(menu[i]);
free(command[i]);
}
Expand Down

0 comments on commit 08c6905

Please sign in to comment.