From 1d06764d0685a552d8ac6ea055bfbfbbf6dfd4da Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 6 Apr 2017 16:26:53 +0200 Subject: Fix a memory leak. --- src/database.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/database.c b/src/database.c index 996a2c5..7e4de95 100644 --- a/src/database.c +++ b/src/database.c @@ -67,6 +67,8 @@ static void destroy_entry(db_entry *entry) next = job->waiting_list.next; job_destroy(job); } + + free(entry); } // Frees all entries and resets the database. -- cgit