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

This commit is contained in:
h_vogt 2016-06-15 21:06:28 +02:00 committed by rlar
parent 29cb659235
commit 893157b11f
1 changed files with 2 additions and 1 deletions

View File

@ -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;