svn commit: samba r6437 - in trunk/source/registry: .

jerry at samba.org jerry at samba.org
Fri Apr 22 22:44:44 GMT 2005


Author: jerry
Date: 2005-04-22 22:44:44 +0000 (Fri, 22 Apr 2005)
New Revision: 6437

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6437

Log:
at least plug one hole in the sinking ship :-)
Modified:
   trunk/source/registry/regfio.c


Changeset:
Modified: trunk/source/registry/regfio.c
===================================================================
--- trunk/source/registry/regfio.c	2005-04-22 22:37:45 UTC (rev 6436)
+++ trunk/source/registry/regfio.c	2005-04-22 22:44:44 UTC (rev 6437)
@@ -332,8 +332,6 @@
 	if ( !hbin )
 		return False;
 	
-	/* before this HBIN ? */
-	
 	if ( (offset > hbin->first_hbin_off) && (offset < (hbin->first_hbin_off+hbin->block_size)) )
 		return True;
 		
@@ -354,6 +352,10 @@
 
 	block_off = REGF_BLOCKSIZE;
 	do {
+		/* cleanup before the next round */
+		if ( hbin )
+			prs_mem_free( &hbin->ps );
+
 		hbin = read_hbin_block( file, block_off );
 
 		if ( hbin ) 



More information about the samba-cvs mailing list