[sr-dev] git:master:5238fe0a: rtpengine: free rtpl if error inside fixup_set_id()
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jul 31 15:54:53 CEST 2017
Module: kamailio
Branch: master
Commit: 5238fe0a5c66cf559bc099bf5e2e0ced42390625
URL: https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ced42390625
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/5238fe0a5c66cf559bc099bf5e2e0ced42390625.diff
Patch: https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ced42390625.patch
---
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);
More information about the sr-dev
mailing list