summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-07 19:47:57 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-07 19:47:57 -0400
commit3b4dd4475eaf6f890d4bed22200ed417981d1e7c (patch)
tree37c4e3b0f6e23a5a539c33f8faeb8a4ceebc6bff /config.c
parenta04f42637efa2a1ba380f9d35c1b8b5d573430a5 (diff)
Fixed a bug in one of the checks in `read_file()`.
Diffstat (limited to 'config.c')
-rw-r--r--config.c1
1 files changed, 0 insertions, 1 deletions
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;
}