changeset 10297:614c29db4bc4

6839124 svc.startd logs free()d string when told to refresh itself Contributed by Gary Mills <mills@cc.umanitoba.ca>.
author Seth Goldberg <Seth.Goldberg@Sun.COM>
date Wed, 12 Aug 2009 21:16:19 -0700
parents afe43a511349
children a0d52501437c
files usr/src/cmd/svc/startd/graph.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/svc/startd/graph.c	Wed Aug 12 17:10:27 2009 -0700
+++ b/usr/src/cmd/svc/startd/graph.c	Wed Aug 12 21:16:19 2009 -0700
@@ -6076,9 +6076,9 @@
 	vertex = vertex_get_by_name(inst_name);
 	if (vertex == NULL) {
 		MUTEX_UNLOCK(&dgraph_lock);
-		startd_free(inst_name, max_scf_fmri_size);
 		log_framework(LOG_DEBUG, "%s: Can't find graph vertex. "
 		    "The instance must have been removed.\n", inst_name);
+		startd_free(inst_name, max_scf_fmri_size);
 		return (0);
 	}