git.samba.org
/
ambi
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f0dac
)
s3-utils: Fixed possible resource leak in smbfilter.
author
Andreas Schneider
<asn@samba.org>
Wed, 19 Jan 2011 14:20:34 +0000
(15:20 +0100)
committer
Jeremy Allison
<jra@samba.org>
Wed, 26 Jan 2011 22:20:37 +0000
(14:20 -0800)
s3-utils: Fixed possible resource leak in smbfilter.
source3/utils/smbfilter.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbfilter.c
b/source3/utils/smbfilter.c
index 2f78140897b9cd52a6c8bfb63bb7207310304023..136047adde9e4e0830f1ba9d0817e57caa47c0d2 100644
(file)
--- 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);