session: fix file descriptor leak in rpc_blob_from_file()

This commit is contained in:
Jo-Philipp Wich 2013-10-26 14:16:29 +00:00
parent a511e620c8
commit a7ef5ca736

View file

@ -1188,6 +1188,8 @@ rpc_blob_from_file(const char *path)
if (len != blob_pad_len(&head)) if (len != blob_pad_len(&head))
goto fail; goto fail;
close(fd);
return attr; return attr;
fail: fail: