diff options
author | Paulo Pizarro <paulo.pizarro@gmail.com> | 2012-06-17 23:22:39 -0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-06-18 13:32:48 +0300 |
commit | 56f0234b1d6c0c0694a523697a9c17dc6b92cbae (patch) | |
tree | 398ae6a9175148d278132ac12f5b94603afd37dd /src/dnsproxy.c | |
parent | 97e278e2cff460d6729de96c732374a6dc93e3fa (diff) | |
download | connman-56f0234b1d6c0c0694a523697a9c17dc6b92cbae.tar.gz connman-56f0234b1d6c0c0694a523697a9c17dc6b92cbae.tar.bz2 connman-56f0234b1d6c0c0694a523697a9c17dc6b92cbae.zip |
dnsproxy: Release all the fields of the request after forward dns reply
Diffstat (limited to 'src/dnsproxy.c')
-rw-r--r-- | src/dnsproxy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 5adede5c..9a4fa47b 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -1609,9 +1609,6 @@ static int forward_dns_reply(unsigned char *reply, int reply_len, int protocol, if (hdr->rcode > 0 && req->numresp < req->numserv) return -EINVAL; - if (req->timeout > 0) - g_source_remove(req->timeout); - request_list = g_slist_remove(request_list, req); if (protocol == IPPROTO_UDP) { @@ -1624,8 +1621,7 @@ static int forward_dns_reply(unsigned char *reply, int reply_len, int protocol, close(sk); } - g_free(req->resp); - g_free(req); + destroy_request_data(req); return err; } |