Browse Source

inp.c, inp_savecurrents(), remove a memory leak

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
893157b11f
  1. 3
      src/frontend/inp.c

3
src/frontend/inp.c

@ -1583,7 +1583,7 @@ static void inp_savecurrents(struct line *deck, struct line *options, wordlist *
{
struct line *tmp_deck, *tmp_line;
char beg;
char *devname, *devline, *newline;
char *devname = NULL, *devline, *newline;
bool goon = FALSE, havesave = FALSE;
wordlist *tmpword;
@ -1686,6 +1686,7 @@ static void inp_savecurrents(struct line *deck, struct line *options, wordlist *
default:
;
}
tfree(devname);
}
while((*wl)->wl_prev)
(*wl) = (*wl)->wl_prev;

Loading…
Cancel
Save