Module: kamailio
Branch: master
Commit: 5238fe0a5c66cf559bc099bf5e2e0ced42390625
URL:
https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ce…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-31T15:54:27+02:00
rtpengine: free rtpl if error inside fixup_set_id()
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ce…
Patch:
https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ce…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index d4f45bf7c0..83c56ab826 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -1046,6 +1046,7 @@ static int fixup_set_id(void ** param, int param_no)
int_val = pv_locate_name(&s);
if(int_val<0 || int_val!=s.len) {
LM_ERR("invalid parameter %s\n", s.s);
+ pkg_free(rtpl);
return -1;
}
rtpl->rpv = pv_cache_get(&s);