Projects
Browse Source     Search     Timeline     Wiki

Changeset 23016

Show
Ignore:
Timestamp:
01/22/07 12:56:54 (23 months ago)
Author:
zarzycki@…
Message:

Fix a small memory management related bug.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_core_logic.c

    r23015 r23016  
    19621962        uid_t u = j->mach_uid; 
    19631963 
     1964        if (!job_assumes(j, kp != NULL)) { 
     1965                return; 
     1966        } 
    19641967        if (!job_assumes(j, sysctl(mib, 3, kp, &len, NULL, 0) != -1)) { 
    1965                 return; 
     1968                goto out; 
    19661969        } 
    19671970 
     
    19811984        } 
    19821985 
     1986out: 
    19831987        free(kp); 
    19841988}