[Sheepdog] [PATCH] sheep: fix a fd leak in jrnl_perform()
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Jan 17 12:54:18 CET 2011
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/store.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sheep/store.c b/sheep/store.c
index dfdb4ad..858e534 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -2063,6 +2063,10 @@ int jrnl_perform(struct jrnl_descriptor *jd)
if (ret)
goto out;
+ ret = jrnl_close(&jd->jd_jfd);
+ if (ret)
+ goto out;
+
ret = jrnl_remove(&jd->jd_jfd);
out:
--
1.5.6.5
More information about the sheepdog
mailing list