--- ../nagios.orig/common/objects.c	Mon Nov 15 13:47:21 2004
+++ common/objects.c	Tue Nov 30 13:32:58 2004
@@ -6051,13 +6051,21 @@
 	for(this_hostextinfo=hostextinfo_list;this_hostextinfo!=NULL;this_hostextinfo=next_hostextinfo){
 		next_hostextinfo=this_hostextinfo->next;
 		free(this_hostextinfo->host_name);
+		this_hostextinfo->host_name=NULL;
 		free(this_hostextinfo->notes);
+		this_hostextinfo->notes=NULL;
 		free(this_hostextinfo->notes_url);
+		this_hostextinfo->notes_url=NULL;
 		free(this_hostextinfo->action_url);
+		this_hostextinfo->action_url=NULL;
 		free(this_hostextinfo->icon_image);
+		this_hostextinfo->icon_image=NULL;
 		free(this_hostextinfo->vrml_image);
+		this_hostextinfo->vrml_image=NULL;
 		free(this_hostextinfo->statusmap_image);
+		this_hostextinfo->statusmap_image=NULL;
 		free(this_hostextinfo->icon_image_alt);
+		this_hostextinfo->icon_image_alt=NULL;
 		free(this_hostextinfo);
 	        }
 
@@ -6074,11 +6082,19 @@
 	for(this_serviceextinfo=serviceextinfo_list;this_serviceextinfo!=NULL;this_serviceextinfo=next_serviceextinfo){
 		next_serviceextinfo=this_serviceextinfo->next;
 		free(this_serviceextinfo->host_name);
+		this_serviceextinfo->host_name=NULL;
 		free(this_serviceextinfo->description);
+		this_serviceextinfo->description=NULL;
 		free(this_serviceextinfo->notes);
+		this_serviceextinfo->notes=NULL;
 		free(this_serviceextinfo->notes_url);
+		this_serviceextinfo->notes_url=NULL;
 		free(this_serviceextinfo->action_url);
+		this_serviceextinfo->action_url=NULL;
 		free(this_serviceextinfo->icon_image);
+		this_serviceextinfo->icon_image=NULL;
+		free(this_serviceextinfo->icon_image_alt);
+		this_serviceextinfo->icon_image_alt=NULL;
 		free(this_serviceextinfo);
 	        }
 
