svn commit: r298868 - head/sbin/restore
Pedro F. Giffuni
pfg at FreeBSD.org
Sat Apr 30 22:51:10 UTC 2016
Author: pfg
Date: Sat Apr 30 22:51:09 2016
New Revision: 298868
URL: https://svnweb.freebsd.org/changeset/base/298868
Log:
restore: fix memory leak.
CID: 272297
MFC after: 5 days
Modified:
head/sbin/restore/main.c
Modified: head/sbin/restore/main.c
==============================================================================
--- head/sbin/restore/main.c Sat Apr 30 22:20:32 2016 (r298867)
+++ head/sbin/restore/main.c Sat Apr 30 22:51:09 2016 (r298868)
@@ -366,7 +366,8 @@ obsolete(int *argcp, char **argvp[])
if (flags) {
*p = '\0';
*nargv++ = flagsp;
- }
+ } else
+ free(flagsp);
/* Copy remaining arguments. */
while ((*nargv++ = *argv++));
More information about the svn-src-head
mailing list