[asterisk-commits] dlee: branch dlee/ASTERISK-194630-startup-deadlock r398421 - /team/dlee/ASTER...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 5 12:54:49 CDT 2013


Author: dlee
Date: Thu Sep  5 12:54:47 2013
New Revision: 398421

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=398421
Log:
Addressed review feedback: improved calloc() call

Modified:
    team/dlee/ASTERISK-194630-startup-deadlock/main/lock.c

Modified: team/dlee/ASTERISK-194630-startup-deadlock/main/lock.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-194630-startup-deadlock/main/lock.c?view=diff&rev=398421&r1=398420&r2=398421
==============================================================================
--- team/dlee/ASTERISK-194630-startup-deadlock/main/lock.c (original)
+++ team/dlee/ASTERISK-194630-startup-deadlock/main/lock.c Thu Sep  5 12:54:47 2013
@@ -87,7 +87,7 @@
 		return *plt;
 	}
 
-	lt = *plt = (struct ast_lock_track *) calloc(1, sizeof(*lt));
+	lt = *plt = ast_std_calloc(1, sizeof(*lt));
 
 	if (!lt) {
 		fprintf(stderr, "%s: Failed to allocate lock tracking\n", __func__);




More information about the asterisk-commits mailing list