From fffe2e140420f75d6ad06ab9356b337570572b9b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 17 Mar 2011 13:18:59 -0700 Subject: [PATCH] Restore failure returns to unexaix.c, unexcoff.c, unexcw.c --- src/unexaix.c | 1 + src/unexcoff.c | 1 + src/unexcw.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/unexaix.c b/src/unexaix.c index e6aad2db775..df4c5b8905c 100644 --- a/src/unexaix.c +++ b/src/unexaix.c @@ -142,6 +142,7 @@ unexec (const char *new_name, const char *a_name) || unrelocate_symbols (new, a_out, a_name, new_name) < 0) { close (new); + return; } close (new); diff --git a/src/unexcoff.c b/src/unexcoff.c index 03b0015e6b9..ef86a400239 100644 --- a/src/unexcoff.c +++ b/src/unexcoff.c @@ -545,6 +545,7 @@ unexec (const char *new_name, const char *a_name) ) { close (new); + return; } close (new); diff --git a/src/unexcw.c b/src/unexcw.c index 1202e046024..f643c196de0 100644 --- a/src/unexcw.c +++ b/src/unexcw.c @@ -263,6 +263,7 @@ unexec (const char *outfile, const char *infile) { /* can only dump once */ printf ("You can only dump Emacs once on this platform.\n"); + return; } report_sheap_usage (1); -- 2.39.2