svn commit: samba r25326 - in branches: SAMBA_3_2/source/lib SAMBA_3_2_0/source/lib

gd at samba.org gd at samba.org
Tue Sep 25 22:43:46 GMT 2007


Author: gd
Date: 2007-09-25 22:43:42 +0000 (Tue, 25 Sep 2007)
New Revision: 25326

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

Log:
Free the context from the talloc_stackframe.

Guenther

Modified:
   branches/SAMBA_3_2/source/lib/module.c
   branches/SAMBA_3_2_0/source/lib/module.c


Changeset:
Modified: branches/SAMBA_3_2/source/lib/module.c
===================================================================
--- branches/SAMBA_3_2/source/lib/module.c	2007-09-25 21:41:57 UTC (rev 25325)
+++ branches/SAMBA_3_2/source/lib/module.c	2007-09-25 22:43:42 UTC (rev 25326)
@@ -108,8 +108,11 @@
 
 	DEBUG(5, ("Probing module '%s'\n", module));
 
-	if (module[0] == '/')
-		return do_smb_load_module(module, True);
+	if (module[0] == '/') {
+		status = do_smb_load_module(module, True);
+		TALLOC_FREE(ctx);
+		return status;
+	}
 
 	full_path = talloc_asprintf(ctx,
 			"%s/%s.%s",

Modified: branches/SAMBA_3_2_0/source/lib/module.c
===================================================================
--- branches/SAMBA_3_2_0/source/lib/module.c	2007-09-25 21:41:57 UTC (rev 25325)
+++ branches/SAMBA_3_2_0/source/lib/module.c	2007-09-25 22:43:42 UTC (rev 25326)
@@ -108,8 +108,11 @@
 
 	DEBUG(5, ("Probing module '%s'\n", module));
 
-	if (module[0] == '/')
-		return do_smb_load_module(module, True);
+	if (module[0] == '/') {
+		status = do_smb_load_module(module, True);
+		TALLOC_FREE(ctx);
+		return status;
+	}
 
 	full_path = talloc_asprintf(ctx,
 			"%s/%s.%s",



More information about the samba-cvs mailing list