[asterisk-commits] eliel: branch group/data_api_gsoc2009 r210187 - /team/group/data_api_gsoc2009...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 3 14:04:40 CDT 2009


Author: eliel
Date: Mon Aug  3 14:04:37 2009
New Revision: 210187

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=210187
Log:
Set the pointer to NULL after destroying it.


Modified:
    team/group/data_api_gsoc2009/main/data.c

Modified: team/group/data_api_gsoc2009/main/data.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/main/data.c?view=diff&rev=210187&r1=210186&r2=210187
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Mon Aug  3 14:04:37 2009
@@ -2054,6 +2054,7 @@
 	}
 
 	ast_free(iterator);
+	iterator = NULL;
 }
 
 struct ast_data *ast_data_iterator_next(struct ast_data_iterator *iterator)




More information about the asterisk-commits mailing list