Browse code

- quick fix for presence crash due to free notify bodies in different types of event (mwi -- reported by Juha Heinanen) -- needs more analysis

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

Daniel-Constantin Mierla authored on 11/06/2007 13:07:36
Showing 1 changed files
... ...
@@ -1424,7 +1424,12 @@ jump_over_body:
1424 1424
 		if(notify_body!=NULL)
1425 1425
 		{
1426 1426
 			if(notify_body->s!=NULL)
1427
-				free(notify_body->s);
1427
+			{
1428
+				if(subs->event->agg_nbody!=NULL)
1429
+					free(notify_body->s);
1430
+				else
1431
+					pkg_free(notify_body->s);
1432
+			}
1428 1433
 			pkg_free(notify_body);
1429 1434
 		}
1430 1435
 	}