summaryrefslogtreecommitdiff
path: root/rdoff
diff options
context:
space:
mode:
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/ldrdf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c
index ff543f93..2db980f0 100644
--- a/rdoff/ldrdf.c
+++ b/rdoff/ldrdf.c
@@ -1398,7 +1398,9 @@ int main(int argc, char **argv)
write_output(outname);
- if (errorcount > 0)
+ if (errorcount > 0) {
+ remove(outname);
exit(1);
+ }
return 0;
}