diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-10-26 14:16:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-10-26 14:16:29 +0000 |
commit | a7ef5ca736601f4ca1944233663721021c40b9e6 (patch) | |
tree | 3b7b2dd68373c27f656792aa59ca2b33e6aa3413 | |
parent | a511e620c8d8c735e6a16b7f67382d587dcdaf31 (diff) | |
download | rpcd-a7ef5ca736601f4ca1944233663721021c40b9e6.tar.gz |
session: fix file descriptor leak in rpc_blob_from_file()
-rw-r--r-- | session.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1188,6 +1188,8 @@ rpc_blob_from_file(const char *path) if (len != blob_pad_len(&head)) goto fail; + close(fd); + return attr; fail: |