From fdd7bab8a4eb60e2298f6495adc53aa733ba050d Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Wed, 25 May 2016 13:26:48 +0200 Subject: [PATCH] tapestat: exit if there is not enough memory --- tapestat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tapestat.c b/tapestat.c index a715b49..b3b1673 100644 --- a/tapestat.c +++ b/tapestat.c @@ -219,7 +219,8 @@ void tape_check_tapes_and_realloc(void) free(tape_new_stats); tape_new_stats = NULL; } - return; + perror("realloc"); + exit(4); } for (i = max_tape_drives; i < new_max_tape_drives; i++) { -- 2.40.0