diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-04-06 16:26:53 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-04-06 16:26:53 +0200 |
commit | 1d06764d0685a552d8ac6ea055bfbfbbf6dfd4da (patch) | |
tree | 00f80b32f83a69bccd6cf922737a64c92809904e /src | |
parent | abd4bac64d091644236c072be3216caf2fca4de1 (diff) |
Fix a memory leak.
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. |