Dont leak every single buffer we read from the socket.

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2013-10-30 18:15:03 -07:00
parent 8733f38d23
commit 751770fd43
1 changed files with 1 additions and 1 deletions

View File

@ -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;