plug leak, coverity cid 98.

This commit is contained in:
elad 2006-03-20 17:03:08 +00:00
parent 3e7dafb547
commit c080c43ef1
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpc_parse.c,v 1.13 2004/06/20 22:20:16 jmc Exp $ */
/* $NetBSD: rpc_parse.c,v 1.14 2006/03/20 17:03:08 elad Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)rpc_parse.c 1.8 89/02/22 (C) 1987 SMI";
#else
__RCSID("$NetBSD: rpc_parse.c,v 1.13 2004/06/20 22:20:16 jmc Exp $");
__RCSID("$NetBSD: rpc_parse.c,v 1.14 2006/03/20 17:03:08 elad Exp $");
#endif
#endif
@ -100,6 +100,7 @@ get_definition()
def_const(defp);
break;
case TOK_EOF:
free(defp);
return (NULL);
default:
error("definition keyword expected");