summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen/rpc_scan.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2006-03-22 18:20:32 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2006-03-22 18:20:32 +0000
commit725cd45607e654de459898ed4b7e2fd7827d6120 (patch)
tree7ff1823a0507e963e55c1d4dd62d6c44db57f39f /usr.bin/rpcgen/rpc_scan.c
parentafb79f93e400b36d35786c8fb51ca0da349a9ee8 (diff)
NetBSD - plug leak in generate_guard()
- plug leak in h_output(), coverity cid 100 NetBSD plug leak, coverity cid 98. NetBSD plug leak, coverity cid 94. ok ray@ jaredy@ moritz@
Diffstat (limited to 'usr.bin/rpcgen/rpc_scan.c')
-rw-r--r--usr.bin/rpcgen/rpc_scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rpcgen/rpc_scan.c b/usr.bin/rpcgen/rpc_scan.c
index 5fa50842af1..4181ef4c96e 100644
--- a/usr.bin/rpcgen/rpc_scan.c
+++ b/usr.bin/rpcgen/rpc_scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_scan.c,v 1.11 2003/03/30 20:57:27 deraadt Exp $ */
+/* $OpenBSD: rpc_scan.c,v 1.12 2006/03/22 18:20:31 dhill Exp $ */
/* $NetBSD: rpc_scan.c,v 1.4 1995/06/11 21:50:02 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -508,6 +508,7 @@ docppline(line, lineno, fname)
*p = 0;
if (*file == 0) {
*fname = NULL;
+ free(file);
} else {
*fname = file;
}