From 7ff2f3a01d4abde15acc778b080f89ab3a09a178 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 26 Jun 2011 18:58:54 +1000 Subject: [PATCH] when destroying a udp rpc context, free any udp_dest data we may have --- lib/init.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.34.1