summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-04-06 16:26:53 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-04-06 16:26:53 +0200
commit1d06764d0685a552d8ac6ea055bfbfbbf6dfd4da (patch)
tree00f80b32f83a69bccd6cf922737a64c92809904e
parentabd4bac64d091644236c072be3216caf2fca4de1 (diff)
Fix a memory leak.
-rw-r--r--src/database.c2
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.