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",

Reply via email to