mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
[mod_redis] scan-build: Dereference of null pointer - cr_delete()
This commit is contained in:
parent
2d727b7b31
commit
40745503a1
@ -478,6 +478,7 @@ static int cr_receivereply(REDIS rhnd, char recvtype)
|
|||||||
|
|
||||||
static void cr_delete(REDIS rhnd)
|
static void cr_delete(REDIS rhnd)
|
||||||
{
|
{
|
||||||
|
if (!rhnd) return;
|
||||||
if (rhnd->reply.multibulk.bulks != NULL)
|
if (rhnd->reply.multibulk.bulks != NULL)
|
||||||
free(rhnd->reply.multibulk.bulks);
|
free(rhnd->reply.multibulk.bulks);
|
||||||
if (rhnd->reply.multibulk.idxs != NULL)
|
if (rhnd->reply.multibulk.idxs != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user