hirc

IRC client
Log | Files | Refs

commit ca1e2a971e3c9de6ed026860056128a13949e5ff
parent f754545c7dde051898a0231933a42e93de53af74
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 20 Feb 2022 19:42:29 +0000

endwin() on emalloc/estrdup

Diffstat:
Msrc/main.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -39,6 +39,7 @@ emalloc(size_t size) { if ((mem = malloc(size)) == NULL) { perror("malloc()"); + endwin(); exit(EXIT_FAILURE); } @@ -51,6 +52,7 @@ estrdup(const char *str) { if ((ret = strdup(str)) == NULL) { perror("strdup()"); + endwin(); exit(EXIT_FAILURE); }