From 8d4908da2c30c636575a799c352d9af95027ac36 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 27 Dec 1998 08:48:33 +0000 Subject: 1998-12-26 Roland McGrath * exec.c (do_exec): Fix conditional for cleaning up INTERP, from nonnull E.interp.section to nonnull INTERP.file. If we failed to open the interpreter file, INTERP.file will be null and the rest of INTERP will be uninitialized. --- exec/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec/exec.c') diff --git a/exec/exec.c b/exec/exec.c index 6a5c18a2..1655aeaa 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1623,7 +1623,7 @@ do_exec (file_t file, } out: - if (e.interp.section) + if (interp.file != MACH_PORT_NULL) finish (&interp, 1); finish (&e, !e.error); -- cgit v1.2.3