diff options
author | Andreas Schneider <asn@samba.org> | 2011-01-19 15:20:34 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-26 14:20:37 -0800 |
commit | 08dc51d3caabcebf9cc2dc02aac74632831c09b7 (patch) | |
tree | 2bea9b8cd3ff773940bf8b4a5324694dfe765890 /source3/utils | |
parent | f6f0dac4271b2bd1304c2b592c4d2dcbc795afaf (diff) | |
download | samba-08dc51d3caabcebf9cc2dc02aac74632831c09b7.tar.gz samba-08dc51d3caabcebf9cc2dc02aac74632831c09b7.tar.bz2 samba-08dc51d3caabcebf9cc2dc02aac74632831c09b7.zip |
s3-utils: Fixed possible resource leak in smbfilter.
s3-utils: Fixed possible resource leak in smbfilter.
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbfilter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 2f78140897..136047adde 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -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); |