From: Ronnie Sahlberg Date: Sun, 26 Jun 2011 08:58:54 +0000 (+1000) Subject: when destroying a udp rpc context, free any udp_dest data we may have X-Git-Tag: upstream/1.9.6^2~367 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7ff2f3a01d4abde15acc778b080f89ab3a09a178;p=deb_libnfs.git when destroying a udp rpc context, free any udp_dest data we may have --- diff --git a/lib/init.c b/lib/init.c index b980eab..5663f25 100644 --- a/lib/init.c +++ b/lib/init.c @@ -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); }