plug leak, coverity cid 94.
This commit is contained in:
parent
6bceef66d3
commit
3e7dafb547
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rpc_scan.c,v 1.9 2004/06/20 22:20:16 jmc Exp $ */
|
||||
/* $NetBSD: rpc_scan.c,v 1.10 2006/03/20 17:01:26 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_scan.c 1.11 89/02/22 (C) 1987 SMI";
|
||||
#else
|
||||
__RCSID("$NetBSD: rpc_scan.c,v 1.9 2004/06/20 22:20:16 jmc Exp $");
|
||||
__RCSID("$NetBSD: rpc_scan.c,v 1.10 2006/03/20 17:01:26 elad Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -509,6 +509,7 @@ docppline(line, lineno, fname)
|
||||
*p = 0;
|
||||
if (*file == 0) {
|
||||
*fname = NULL;
|
||||
free(file);
|
||||
} else {
|
||||
*fname = file;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user