mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Fix two memory leaks in config(8).
PR: 202145 Submitted by: Kurt Lidl <lidl pix.net>
This commit is contained in:
parent
e26b6f00f9
commit
8ed645520e
1 changed files with 2 additions and 0 deletions
|
|
@ -623,6 +623,7 @@ do_xxfiles(char *tag, FILE *fp)
|
|||
slen = strlen(suff);
|
||||
|
||||
fprintf(fp, "%sFILES=", SUFF);
|
||||
free(SUFF);
|
||||
lpos = 8;
|
||||
STAILQ_FOREACH(tp, &ftab, f_next)
|
||||
if (tp->f_type != NODEPEND) {
|
||||
|
|
@ -641,6 +642,7 @@ do_xxfiles(char *tag, FILE *fp)
|
|||
fprintf(fp, "%s ", tp->f_fn);
|
||||
lpos += len + 1;
|
||||
}
|
||||
free(suff);
|
||||
if (lpos != 8)
|
||||
putc('\n', fp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue