[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-915-g78b0b66

Volker Lendecke vl at samba.org
Wed Dec 26 22:42:21 GMT 2007


The branch, v3-2-test has been updated
       via  78b0b66cbac349625257260d2e45d918e0c93617 (commit)
      from  9e80b969fb40766de2c9b1a05d16bf4d4c6e46f7 (commit)

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


- Log -----------------------------------------------------------------
commit 78b0b66cbac349625257260d2e45d918e0c93617
Author: Volker Lendecke <vl at samba.org>
Date:   Wed Dec 26 23:44:24 2007 +0100

    Fix some memleaks

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

Summary of changes:
 source/lib/debug.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/debug.c b/source/lib/debug.c
index 87ec9ed..9ea2dc1 100644
--- a/source/lib/debug.c
+++ b/source/lib/debug.c
@@ -785,13 +785,13 @@ void check_log_size( void )
 			(void)x_vfprintf( dbf, format_str, ap );
 		va_end( ap );
 		errno = old_errno;
-		return( 0 );
+		goto done;
 	}
 
 	/* prevent recursion by checking if reopen_logs() has temporaily
 	   set the debugf string to NULL */
 	if( debugf == NULL)
-		return( 0 );
+		goto done;
 
 #ifdef WITH_SYSLOG
 	if( !lp_syslog_only() )
@@ -806,7 +806,7 @@ void check_log_size( void )
 				x_setbuf( dbf, NULL );
 			} else {
 				errno = old_errno;
-				return(0);
+				goto done;
 			}
 		}
 	}
@@ -855,10 +855,11 @@ void check_log_size( void )
 			(void)x_fflush( dbf );
 	}
 
-	errno = old_errno;
-
+ done:
 	TALLOC_FREE(tmp_debug_ctx);
 
+	errno = old_errno;
+
 	return( 0 );
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list