Date: Sun, 1 May 2016 02:39:39 +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: r298874 - head/sbin/restore Message-ID: <201605010239.u412ddXW066174@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Sun May 1 02:39:39 2016 New Revision: 298874 URL: https://svnweb.freebsd.org/changeset/base/298874 Log: restore: fix resource handle leak. CID: 1007784 MFC after: 5 days Modified: head/sbin/restore/symtab.c Modified: head/sbin/restore/symtab.c ============================================================================== --- head/sbin/restore/symtab.c Sun May 1 02:31:22 2016 (r298873) +++ head/sbin/restore/symtab.c Sun May 1 02:39:39 2016 (r298874) @@ -559,6 +559,7 @@ initsymtable(char *filename) fprintf(stderr, "read: %s\n", strerror(errno)); panic("cannot read symbol table file %s\n", filename); } + (void)close(fd); switch (command) { case 'r': /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605010239.u412ddXW066174>