[systemd-devel] [PATCH 3/3] shared: free dt (temporary dir name) on fail
Vaclav Pavlin
vpavlin at redhat.com
Wed Mar 27 07:16:37 PDT 2013
From: Václav Pavlín <vpavlin at redhat.com>
---
src/shared/util.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/shared/util.c b/src/shared/util.c
index 0444cf4..b724959 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -5733,6 +5733,7 @@ int create_tmp_dir(char template[], char** dir_name) {
return 0;
fail1:
rmdir(dt);
+ free(dt);
fail2:
rmdir(template);
return r;
--
1.8.1.4
More information about the systemd-devel
mailing list