Преглед на файлове

modules/ims_registrar_pcscf: fixed pkg_mem leak when sending subscribe

Richard Good преди 11 години
родител
ревизия
7611a95953
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  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);
 			    LM_ERR("wrong format[%.*s] - failed unsubscribing to reginfo\n",aor.len, aor.s);
 		    }
 		    }
 		    reginfo_subscribe_real(msg, presentity_uri_pv, 0, 0);
 		    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: */
 		/* 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);
 	    reginfo_subscribe_real(_m, presentity_uri_pv, service_routes, subscription_expires);
+	    pv_elem_free_all(presentity_uri_pv);
 	}
 	}
     
     
 done:
 done: