Blame SOURCES/0137-dd-close-deleted-directories-release-resources.patch

5f7b57
From 1b13c18d79e55fe1012be8044e2f77f3c4025c99 Mon Sep 17 00:00:00 2001
5f7b57
From: Jakub Filak <jfilak@redhat.com>
5f7b57
Date: Tue, 5 May 2015 16:25:25 +0200
5f7b57
Subject: [LIBREPORT PATCH] dd: close deleted directories (release resources)
5f7b57
5f7b57
Uncovered by coverity.
5f7b57
5f7b57
Signed-off-by: Jakub Filak <jfilak@redhat.com>
5f7b57
---
5f7b57
 src/lib/dump_dir.c | 1 +
5f7b57
 1 file changed, 1 insertion(+)
5f7b57
5f7b57
diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
5f7b57
index d9b8603..32f498b 100644
5f7b57
--- a/src/lib/dump_dir.c
5f7b57
+++ b/src/lib/dump_dir.c
5f7b57
@@ -917,6 +917,7 @@ static int delete_file_dir(int dir_fd, bool skip_lock_file)
5f7b57
     if (unlink_lock_file)
5f7b57
         xunlinkat(dir_fd, ".lock", /*only files*/0);
5f7b57
 
5f7b57
+    closedir(d);
5f7b57
     return 0;
5f7b57
 }
5f7b57
 
5f7b57
-- 
5f7b57
1.8.3.1
5f7b57