Fix a free bug

This commit is contained in:
Quentin 2019-03-19 18:27:14 +01:00
parent 372aae6f61
commit c58112f0b7

View file

@ -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);
}