If malloc returns NULL, we need to return NULL immediately or
authorMark Michelson <mmichelson@digium.com>
Wed, 19 Nov 2008 00:59:48 +0000 (00:59 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 19 Nov 2008 00:59:48 +0000 (00:59 +0000)
commit07a22680ee54082a5a109d0c8b2fda5ea17ca9d8
treec749cb78dcda379563bcea85596e2b8c63873189
parent559e644b63ad59df5edb96ff233dba57b9d4ac47
If malloc returns NULL, we need to  return NULL immediately or
else Asterisk will crash when attempting to dereference the NULL
pointer

(closes issue #13858)
Reported by: eliel
Patches:
      astmm.c.patch uploaded by eliel (license 64)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/astmm.c