Browse Source

Fix memory leaks

master
lostd 10 years ago
parent
commit
bc766bc4a8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      noice.c

+ 2
- 0
noice.c View File

@@ -421,6 +421,7 @@ again:
bin = openwith(name);
if (bin == NULL) {
printmsg("No association");
free(pathnew);
goto nochange;
}

@@ -439,6 +440,7 @@ again:
goto redraw;
default:
printmsg("Unsupported file");
free(pathnew);
goto nochange;
}
}


Loading…
Cancel
Save