Explorar o código

modules/ims_registrar_pcscf: fixed pkg_mem leak when sending subscribe

Richard Good %!s(int64=11) %!d(string=hai) anos
pai
achega
7611a95953
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      modules/ims_registrar_pcscf/notify.c
  2. 1 0
      modules/ims_registrar_pcscf/save.c

+ 1 - 0
modules/ims_registrar_pcscf/notify.c

@@ -268,6 +268,7 @@ int process_body(struct sip_msg* msg, str notify_body, udomain_t * domain) {
 			    LM_ERR("wrong format[%.*s] - failed unsubscribing to reginfo\n",aor.len, aor.s);
 		    }
 		    reginfo_subscribe_real(msg, presentity_uri_pv, 0, 0);
+		    pv_elem_free_all(presentity_uri_pv);
 		}
 		
 		/* Now lets process the Contact's from this Registration: */

+ 1 - 0
modules/ims_registrar_pcscf/save.c

@@ -395,6 +395,7 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags) {
 		
 	    }
 	    reginfo_subscribe_real(_m, presentity_uri_pv, service_routes, subscription_expires);
+	    pv_elem_free_all(presentity_uri_pv);
 	}
     
 done: