summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 5729a68..587abd7 100644
--- a/screen.c
+++ b/screen.c
@@ -400,7 +400,7 @@ void init_screen(){
screen.num = HEIGHT;
if (screen.l == NULL){
perror("allocating screen");
- exit(1);
+ cleanup(-1);
}
for (i=0; i<HEIGHT; i++){
alloc_line(&(screen.l[i]));