mirror of
https://github.com/samba-team/samba.git
synced 2025-02-14 01:57:53 +03:00
s3-utils: Fixed possible resource leak in smbfilter.
s3-utils: Fixed possible resource leak in smbfilter.
This commit is contained in:
parent
f6f0dac427
commit
08dc51d3ca
@ -44,6 +44,7 @@ static void save_file(const char *fname, void *ppacket, size_t length)
|
||||
}
|
||||
if (write(fd, ppacket, length) != length) {
|
||||
fprintf(stderr,"Failed to write %s\n", fname);
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
close(fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user