From e4c527b0f07b91fb3cd9ba58ba057dfea9da9356 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Fri, 9 Aug 2019 09:20:53 +0100 Subject: check all mem allocations --- screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index a124a3f..5ea21aa 100644 --- a/screen.c +++ b/screen.c @@ -422,7 +422,7 @@ void init_screen(){ screen.num = HEIGHT; if (screen.l == NULL){ perror("allocating screen"); - cleanup(-1); + cleanup(1); } for (i=0; i