[asterisk-commits] file: branch group/dns r432996 - /team/group/dns/main/dns_recurring.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 16 10:19:17 CDT 2015
Author: file
Date: Mon Mar 16 10:19:15 2015
New Revision: 432996
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432996
Log:
Fix a memory leak with recurring DNS queries.
Modified:
team/group/dns/main/dns_recurring.c
Modified: team/group/dns/main/dns_recurring.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/main/dns_recurring.c?view=diff&rev=432996&r1=432995&r2=432996
==============================================================================
--- team/group/dns/main/dns_recurring.c (original)
+++ team/group/dns/main/dns_recurring.c Mon Mar 16 10:19:15 2015
@@ -120,8 +120,7 @@
recurring->rr_class = rr_class;
strcpy(recurring->name, name); /* SAFE */
- /* The resolution callback expects a reference, so bump it up */
- recurring->query = ast_dns_resolve_async(name, rr_type, rr_class, dns_query_recurring_resolution_callback, ao2_bump(recurring));
+ recurring->query = ast_dns_resolve_async(name, rr_type, rr_class, dns_query_recurring_resolution_callback, recurring);
if (!recurring->query) {
ao2_ref(recurring, -1);
return NULL;
More information about the asterisk-commits
mailing list