diff -r f3baf790a815 -r b8638c3c7eee librazor/atomic-emulate.c --- a/librazor/atomic-emulate.c Tue Sep 30 16:19:55 2014 +0100 +++ b/librazor/atomic-emulate.c Wed Oct 22 12:09:47 2014 +0100 @@ -69,6 +69,8 @@ } } + closedir(dp); + rmdir(directory); } @@ -108,6 +110,11 @@ RAZOR_EXPORT void razor_atomic_destroy(struct razor_atomic *atomic) { + if (atomic->actions) { + atomic_action_free(atomic->actions); + atomic->actions = NULL; + } + if (atomic->toplevel) { recursive_remove(atomic->toplevel); free(atomic->toplevel); @@ -117,6 +124,8 @@ if (atomic->error) razor_error_free(atomic->error); + free(atomic->description); + free(atomic); }