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

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