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: http://git.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=a7ef5ca736601f4ca1944233663721021c40b9e6 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: