Merged revisions 66070 via svnmerge from
[asterisk/asterisk.git] / main / channel.c
index 8303ce8..6522837 100644 (file)
@@ -652,7 +652,8 @@ struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_
                return NULL;
        }
        
-       ast_string_field_init(tmp, 128);
+       if ((ast_string_field_init(tmp, 128)))
+               return NULL;
 
        /* Don't bother initializing the last two FD here, because they
           will *always* be set just a few lines down (AST_TIMING_FD,