[launchd-changes] [23281] trunk/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 19 11:46:50 PDT 2007


Revision: 23281
          http://trac.macosforge.org/projects/launchd/changeset/23281
Author:   zarzycki at apple.com
Date:     2007-06-19 11:46:50 -0700 (Tue, 19 Jun 2007)

Log Message:
-----------
Fix two leaks.

Modified Paths:
--------------
    trunk/launchd/src/launchd_core_logic.c

Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c	2007-06-18 21:05:29 UTC (rev 23280)
+++ trunk/launchd/src/launchd_core_logic.c	2007-06-19 18:46:50 UTC (rev 23281)
@@ -791,6 +791,9 @@
 	if (j->quarantine_data) {
 		free(j->quarantine_data);
 	}
+	if (j->j_binpref) {
+		free(j->j_binpref);
+	}
 	if (j->start_interval) {
 		job_assumes(j, kevent_mod((uintptr_t)&j->start_interval, EVFILT_TIMER, EV_DELETE, 0, 0, NULL) != -1);
 	}
@@ -5277,7 +5280,7 @@
 		job_log(j, LOG_DEBUG, "Mach service lookup forwarded: %s", servicename);
 		*ptype = MACH_MSG_TYPE_MOVE_SEND;
 		kr = bootstrap_look_up(inherited_bootstrap_port, servicename, serviceportp);
-	} else if (getpid() == 1 && j->anonymous && ldc.euid != 0 && strcasecmp(job_get_bs(j)->name, VPROCMGR_SESSION_LOGINWINDOW) == 0) {
+	} else if (getpid() == 1 && j->anonymous && ldc.euid >= 500 && strcasecmp(job_get_bs(j)->name, VPROCMGR_SESSION_LOGINWINDOW) == 0) {
 		/*
 		 * 5240036 Should start background session when a lookup of CCacheServer occurs
 		 *

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070619/aebde67d/attachment.html


More information about the launchd-changes mailing list