From a7ef5ca736601f4ca1944233663721021c40b9e6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 26 Oct 2013 14:16:29 +0000 Subject: [PATCH] session: fix file descriptor leak in rpc_blob_from_file() --- session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/session.c b/session.c index e053979..30adf0b 100644 --- a/session.c +++ b/session.c @@ -1188,6 +1188,8 @@ rpc_blob_from_file(const char *path) if (len != blob_pad_len(&head)) goto fail; + close(fd); + return attr; fail: -- 2.11.0