mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
restore: fix memory leak.
CID: 272297 MFC after: 5 days
This commit is contained in:
parent
f2a5d14c4a
commit
e451cf5f4c
1 changed files with 2 additions and 1 deletions
|
|
@ -366,7 +366,8 @@ obsolete(int *argcp, char **argvp[])
|
|||
if (flags) {
|
||||
*p = '\0';
|
||||
*nargv++ = flagsp;
|
||||
}
|
||||
} else
|
||||
free(flagsp);
|
||||
|
||||
/* Copy remaining arguments. */
|
||||
while ((*nargv++ = *argv++));
|
||||
|
|
|
|||
Loading…
Reference in a new issue