summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen/rpc_parse.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_parse.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_parse.c')
-rw-r--r--usr.bin/rpcgen/rpc_parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rpcgen/rpc_parse.c b/usr.bin/rpcgen/rpc_parse.c
index 60895c4bff0..a84e760bcfb 100644
--- a/usr.bin/rpcgen/rpc_parse.c
+++ b/usr.bin/rpcgen/rpc_parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_parse.c,v 1.14 2003/07/09 03:35:21 deraadt Exp $ */
+/* $OpenBSD: rpc_parse.c,v 1.15 2006/03/22 18:20:31 dhill Exp $ */
/* $NetBSD: rpc_parse.c,v 1.5 1995/08/29 23:05:55 cgd Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -91,6 +91,7 @@ get_definition(void)
def_const(defp);
break;
case TOK_EOF:
+ free(defp);
return (NULL);
default:
error("definition keyword expected");