From: Jo-Philipp Wich Date: Sat, 26 Oct 2013 14:16:29 +0000 (+0000) Subject: session: fix file descriptor leak in rpc_blob_from_file() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7ef5ca736601f4ca1944233663721021c40b9e6;p=oweals%2Frpcd.git session: fix file descriptor leak in rpc_blob_from_file() --- 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: