Variable "handle" going out of scope leaks the storage it points to. Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> --- src/rpc_generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc_generic.c b/src/rpc_generic.c index 589cbd5..51f36ac 100644 --- a/src/rpc_generic.c +++ b/src/rpc_generic.c @@ -319,6 +319,7 @@ __rpc_setconf(nettype) handle->nflag = FALSE; break; default: + free(handle); return (NULL); } -- 2.17.1