when destroying a udp rpc context, free any udp_dest data we may have

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2011-06-26 18:58:54 +10:00
parent fd59fd0da3
commit 7ff2f3a01d
1 changed files with 5 additions and 0 deletions

View File

@ -148,6 +148,11 @@ void rpc_destroy_context(struct rpc_context *rpc)
rpc->error_string = NULL;
}
if (rpc->udp_dest != NULL) {
free(rpc->udp_dest);
rpc->udp_dest = NULL;
}
free(rpc);
}