Skip to content

Commit

Permalink
ims_usrloc_pcscf: fix warning: this ‘if’ clause does not guard...
Browse files Browse the repository at this point in the history
  • Loading branch information
henningw committed Mar 23, 2020
1 parent c53423a commit ae95a6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/ims_usrloc_pcscf/pcontact.c
Expand Up @@ -119,11 +119,12 @@ void free_ppublic(ppublic_t* _p)
// Keep them in sync!
void free_security(security_t* _p)
{
if (!_p)
if (!_p) {
return;
}

if(_p->sec_header.s)
shm_free(_p->sec_header.s);
if(_p->sec_header.s)
shm_free(_p->sec_header.s);

switch (_p->type)
{
Expand Down

0 comments on commit ae95a6a

Please sign in to comment.