From 3b4dd4475eaf6f890d4bed22200ed417981d1e7c Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 7 Jun 2021 19:47:57 -0400 Subject: Fixed a bug in one of the checks in `read_file()`. --- config.c | 1 - 1 file changed, 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index 859b23c..40e3a07 100644 --- a/config.c +++ b/config.c @@ -39,7 +39,6 @@ char *read_file(const char *filename, long *size) { /* Return NULL, if the buffer wasn't allocated. */ if (buf == NULL) { fclose(fp); - free(cfg); return NULL; } -- cgit v1.2.3-13-gbd6f