commit 52eded74638fba142ceddcdc5e3b9ee25a5a4cbf parent 8c6e408c9be983c4004c47ee4661b6eedc720a21 Author: Naveen Narayanan <zerous@nocebo.space> Date: Tue, 12 Oct 2021 02:22:24 +0200 Fix bug free() after unhooking obj from list Diffstat:
M | main.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.c b/main.c @@ -219,6 +219,7 @@ main(int argc, char **argv) if (!strcmp(a->ip, ip)) { printf("attacker deleted\n"); SLIST_REMOVE(&head, a, attacker, attackers); + free(a); } unban(NULL, &head);