From: Ronnie Sahlberg Date: Thu, 31 Oct 2013 01:15:03 +0000 (-0700) Subject: Dont leak every single buffer we read from the socket. X-Git-Tag: upstream/1.9.6^2~179 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=751770fd4310a43a8f488b719d8700730b18f557;p=deb_libnfs.git Dont leak every single buffer we read from the socket. --- diff --git a/lib/socket.c b/lib/socket.c index c5068ba..762dbfa 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -266,7 +266,7 @@ static int rpc_read_from_socket(struct rpc_context *rpc) rpc_set_error(rpc, "Invalid/garbage pdu received from server. Closing socket"); return -1; } - free(rpc->inbuf); + free(buf); } return 0;