From c58112f0b73363d8024e3e5284a67ac3ea7cd5cf Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 19 Mar 2019 18:27:14 +0100 Subject: [PATCH] Fix a free bug --- src/evt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evt_core.c b/src/evt_core.c index 7e3ee92..ffe547a 100644 --- a/src/evt_core.c +++ b/src/evt_core.c @@ -4,7 +4,7 @@ void free_fdinfo(void* v) { struct evt_core_fdinfo* fdinfo = (struct evt_core_fdinfo*)v; close(fdinfo->fd); // We close the file descriptor here if (fdinfo->url != NULL) free(fdinfo->url); // We free the URL here; - if (fdinfo->other != NULL) fdinfo->free_other(fdinfo->other); + if (fdinfo->free_other != NULL) fdinfo->free_other(fdinfo->other); free(v); }