Skip to content

Commit

Permalink
rtpengine: free rtpl if error inside fixup_set_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 31, 2017
1 parent 3016679 commit 5238fe0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/rtpengine/rtpengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5238fe0

Please sign in to comment.