[asterisk-commits] file: branch group/dns_pjsip r433964 - /team/group/dns_pjsip/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 2 11:02:49 CDT 2015
Author: file
Date: Thu Apr 2 11:02:46 2015
New Revision: 433964
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433964
Log:
Tweak query set behavior. After invocation of the callback rid the user specific data.
Modified:
team/group/dns_pjsip/main/dns_query_set.c
Modified: team/group/dns_pjsip/main/dns_query_set.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns_pjsip/main/dns_query_set.c?view=diff&rev=433964&r1=433963&r2=433964
==============================================================================
--- team/group/dns_pjsip/main/dns_query_set.c (original)
+++ team/group/dns_pjsip/main/dns_query_set.c Thu Apr 2 11:02:46 2015
@@ -97,6 +97,9 @@
/* All queries have been completed, invoke final callback */
query_set->callback(query_set->user_data);
+
+ ao2_cleanup(query_set->user_data);
+ query_set->user_data = NULL;
}
int ast_dns_query_set_add(struct ast_dns_query_set *query_set, const char *name, int rr_type, int rr_class)
More information about the asterisk-commits
mailing list