[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1068-g8987ca2

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


The branch, v3-4-test has been updated
       via  8987ca29062db53db117d6c9d9ce2ad01ed17d22 (commit)
      from  61cca8aa5f5e3ad665c3b1acfab20802dd0f3f3a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit 8987ca29062db53db117d6c9d9ce2ad01ed17d22
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