Date: Thu, 28 Dec 2017 05:33:29 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327265 - head/usr.bin/rpcgen Message-ID: <201712280533.vBS5XT2O024205@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Dec 28 05:33:29 2017 New Revision: 327265 URL: https://svnweb.freebsd.org/changeset/base/327265 Log: Plug two resource leaks. CID: 92077, 92074 Modified: head/usr.bin/rpcgen/rpc_parse.c head/usr.bin/rpcgen/rpc_scan.c Modified: head/usr.bin/rpcgen/rpc_parse.c ============================================================================== --- head/usr.bin/rpcgen/rpc_parse.c Thu Dec 28 05:33:24 2017 (r327264) +++ head/usr.bin/rpcgen/rpc_parse.c Thu Dec 28 05:33:29 2017 (r327265) @@ -93,6 +93,7 @@ get_definition(void) def_const(defp); break; case TOK_EOF: + free(defp); return (NULL); default: error("definition keyword expected"); Modified: head/usr.bin/rpcgen/rpc_scan.c ============================================================================== --- head/usr.bin/rpcgen/rpc_scan.c Thu Dec 28 05:33:24 2017 (r327264) +++ head/usr.bin/rpcgen/rpc_scan.c Thu Dec 28 05:33:29 2017 (r327265) @@ -490,6 +490,7 @@ docppline(char *line, int *lineno, const char **fname) *p = 0; if (*file == 0) { *fname = NULL; + free(file); } else { *fname = file; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712280533.vBS5XT2O024205>