session: fix file descriptor leak in rpc_blob_from_file()
This commit is contained in:
parent
a511e620c8
commit
a7ef5ca736
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue