Date: Sat, 30 Apr 2016 22:51:09 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298868 - head/sbin/restore Message-ID: <201604302251.u3UMp9ip097015@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604302251.u3UMp9ip097015>