Module: kamailio
Branch: 5.3
Commit: f31542bb188d69eb4d4e88a54060efc82d1a0bf0
URL:
https://github.com/kamailio/kamailio/commit/f31542bb188d69eb4d4e88a54060efc…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-03-23T11:19:52+01:00
ims_usrloc_pcscf: fix warning: this âifâ clause does not guard...
---
Modified: src/modules/ims_usrloc_pcscf/pcontact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f31542bb188d69eb4d4e88a54060efc…
Patch:
https://github.com/kamailio/kamailio/commit/f31542bb188d69eb4d4e88a54060efc…
---
diff --git a/src/modules/ims_usrloc_pcscf/pcontact.c
b/src/modules/ims_usrloc_pcscf/pcontact.c
index 0d156d39c4..1ac55734d7 100644
--- a/src/modules/ims_usrloc_pcscf/pcontact.c
+++ b/src/modules/ims_usrloc_pcscf/pcontact.c
@@ -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)
{