[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1783-g326237c

Volker Lendecke vlendec at samba.org
Mon May 25 14:26:21 GMT 2009


The branch, master has been updated
       via  326237c4dd3bb03865a3510296aa925e22ea3302 (commit)
      from  5d2cd816459a30107b4ea011c1874b051aa29b1c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 326237c4dd3bb03865a3510296aa925e22ea3302
Author: Slava Semushin <php-coder at altlinux.ru>
Date:   Sat May 23 01:10:05 2009 +0700

    source3/utils/log2pcaphex.c(main): fixed file descriptors leak.
    
    One of leaks found by cppcheck:
    [./source3/utils/log2pcaphex.c:367]: (error) Resource leak: out

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/log2pcaphex.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c
index 072d659..b1a8a27 100644
--- a/source3/utils/log2pcaphex.c
+++ b/source3/utils/log2pcaphex.c
@@ -364,5 +364,13 @@ int main (int argc, char **argv)
 		} 
 	}
 
+	if (in != stdin) {
+		fclose(in);
+	}
+
+	if (out != stdout) {
+		fclose(out);
+	}
+
 	return 0;
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list