From: Peter Schiffer Date: Wed, 25 May 2016 11:26:48 +0000 (+0200) Subject: tapestat: exit if there is not enough memory X-Git-Tag: v11.3.5~26^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdd7bab8a4eb60e2298f6495adc53aa733ba050d;p=sysstat tapestat: exit if there is not enough memory --- 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++) {