Browse code

- fixed a bug in active_watchers_clean function of not setting a pointer to NULL after freeing

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2229 689a6050-402a-0410-94f2-e92a70836424

Anca Vamanu authored on 16/05/2007 06:48:53
Showing 1 changed files
... ...
@@ -740,8 +740,11 @@ void msg_active_watchers_clean(unsigned int ticks,void *param)
740 740
 		}	
741 741
 		subs->event= contains_event(&ev_name, ev_param);
742 742
 		if(ev_param)
743
+		{
743 744
 			pkg_free(ev_param);
744
-		
745
+			ev_param= NULL;
746
+		}
747
+
745 748
 		if(subs->event== NULL)
746 749
 		{
747 750
 			LOG(L_ERR, "PRESENCE:msg_active_watchers_clean: ERROR while"