[asterisk-commits] dlee: branch dlee/tp-local r399871 - /team/dlee/tp-local/main/taskprocessor.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 26 08:52:50 CDT 2013
Author: dlee
Date: Thu Sep 26 08:52:46 2013
New Revision: 399871
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399871
Log:
Check for allocation failure
Modified:
team/dlee/tp-local/main/taskprocessor.c
Modified: team/dlee/tp-local/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/tp-local/main/taskprocessor.c?view=diff&rev=399871&r1=399870&r2=399871
==============================================================================
--- team/dlee/tp-local/main/taskprocessor.c (original)
+++ team/dlee/tp-local/main/taskprocessor.c Thu Sep 26 08:52:46 2013
@@ -717,6 +717,11 @@
return -1;
}
+ if (!t) {
+ ast_log(LOG_ERROR, "t is NULL!\n");
+ return -1;
+ }
+
ao2_lock(tps);
AST_LIST_INSERT_TAIL(&tps->tps_queue, t, list);
previous_size = tps->tps_queue_size++;
More information about the asterisk-commits
mailing list