[sr-dev] mem leak in sdpops

Vicente Hernando vhernando at systemonenoc.com
Fri Aug 31 14:06:10 CEST 2012


Hello,

within w_get_sdp function in modules/sdpops/sdpops_mod.c

     } else {
         avp_val.s.s = pkg_malloc(sdp->raw_sdp.len);
         avp_val.s.len = sdp->raw_sdp.len;
         if (avp_val.s.s == NULL)

I do not find anywhere where avp_val.s.s variable is freed.


So I attach two possible patches to solve that in two different ways.

Kind regards,
Vicente.



More information about the sr-dev mailing list