diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-30 22:51:09 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-30 22:51:09 +0000 |
commit | fd394515010c5c17631a204b831ea15eca8497e8 (patch) | |
tree | 73753aa4818ae5dc33784ae55521de67942d5e0a /sbin/restore | |
parent | 7d813ee6e08a592c7ae7165bf3e29ea74e7236cc (diff) | |
download | FreeBSD-src-fd394515010c5c17631a204b831ea15eca8497e8.zip FreeBSD-src-fd394515010c5c17631a204b831ea15eca8497e8.tar.gz |
restore: fix memory leak.
CID: 272297
MFC after: 5 days
Diffstat (limited to 'sbin/restore')
-rw-r--r-- | sbin/restore/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/restore/main.c b/sbin/restore/main.c index 91f4a83..d74e59e 100644 --- a/sbin/restore/main.c +++ b/sbin/restore/main.c @@ -366,7 +366,8 @@ obsolete(int *argcp, char **argvp[]) if (flags) { *p = '\0'; *nargv++ = flagsp; - } + } else + free(flagsp); /* Copy remaining arguments. */ while ((*nargv++ = *argv++)); |