ims_ipsec_pcscf: Fix a memory leak in add_security_server_header()
authorTsvetomir Dimitrov <tsv.dimitrov@gmail.com>
Wed, 31 Oct 2018 16:43:34 +0000 (18:43 +0200)
committerTsvetomir Dimitrov <tsv.dimitrov@gmail.com>
Wed, 31 Oct 2018 16:43:34 +0000 (18:43 +0200)
src/modules/ims_ipsec_pcscf/cmd.c

index 17e6c7b..a662f0c 100644 (file)
@@ -410,6 +410,8 @@ int add_security_server_header(struct sip_msg* m, ipsec_t* s)
         return -1;
     }
 
+    pkg_free(sec_header);
+
     return 0;
 }