Coverity CID 5029: Fix memory leak.
This commit is contained in:
parent
2fa9c865b5
commit
9842feccf0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svc_raw.c,v 1.20 2008/04/25 17:44:44 christos Exp $ */
|
||||
/* $NetBSD: svc_raw.c,v 1.21 2008/05/24 15:59:59 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
@ -39,7 +39,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)svc_raw.c 1.25 89/01/31 Copyr 1984 Sun Micro";
|
||||
#else
|
||||
__RCSID("$NetBSD: svc_raw.c,v 1.20 2008/04/25 17:44:44 christos Exp $");
|
||||
__RCSID("$NetBSD: svc_raw.c,v 1.21 2008/05/24 15:59:59 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -121,6 +121,8 @@ svc_raw_create()
|
||||
mutex_unlock(&svcraw_lock);
|
||||
return (&srp->server);
|
||||
out:
|
||||
if (srp != NULL)
|
||||
free(srp);
|
||||
mutex_unlock(&svcraw_lock);
|
||||
return (NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user