[svn-commits] file: branch group/dns r432994 - /team/group/dns/main/dns_recurring.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 16 09:51:15 CDT 2015


Author: file
Date: Mon Mar 16 09:51:13 2015
New Revision: 432994

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432994
Log:
Add comment explaining why something can never be the last reference.

This isn't the movie "The Last Starfighter", after all.

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=432994&r1=432993&r2=432994
==============================================================================
--- team/group/dns/main/dns_recurring.c (original)
+++ team/group/dns/main/dns_recurring.c Mon Mar 16 09:51:13 2015
@@ -87,6 +87,7 @@
 		if (ttl) {
 			recurring->timer = ast_sched_add(ast_dns_get_sched(), ttl * 1000, dns_query_recurring_scheduled_callback, ao2_bump(recurring));
 			if (recurring->timer < 0) {
+				/* It is impossible for this to be the last reference as this callback function holds a reference itself */
 				ao2_ref(recurring, -1);
 			}
 		}




More information about the svn-commits mailing list