inp.c, inp_savecurrents(), remove a memory leak
This commit is contained in:
parent
29cb659235
commit
893157b11f
|
|
@ -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…
Reference in New Issue