svn commit: samba r24902 - in branches: SAMBA_3_2/source/lib
SAMBA_3_2_0/source/lib
vlendec at samba.org
vlendec at samba.org
Sun Sep 2 17:48:02 GMT 2007
Author: vlendec
Date: 2007-09-02 17:48:01 +0000 (Sun, 02 Sep 2007)
New Revision: 24902
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24902
Log:
DEBUG might use talloc_tos() itself...
Modified:
branches/SAMBA_3_2/source/lib/talloc_stack.c
branches/SAMBA_3_2_0/source/lib/talloc_stack.c
Changeset:
Modified: branches/SAMBA_3_2/source/lib/talloc_stack.c
===================================================================
--- branches/SAMBA_3_2/source/lib/talloc_stack.c 2007-09-02 17:47:35 UTC (rev 24901)
+++ branches/SAMBA_3_2/source/lib/talloc_stack.c 2007-09-02 17:48:01 UTC (rev 24902)
@@ -100,8 +100,8 @@
TALLOC_CTX *talloc_tos(void)
{
if (talloc_stacksize == 0) {
+ talloc_stackframe();
DEBUG(0, ("no talloc stackframe around, leaking memory\n"));
- talloc_stackframe();
}
return talloc_stack[talloc_stacksize-1];
Modified: branches/SAMBA_3_2_0/source/lib/talloc_stack.c
===================================================================
--- branches/SAMBA_3_2_0/source/lib/talloc_stack.c 2007-09-02 17:47:35 UTC (rev 24901)
+++ branches/SAMBA_3_2_0/source/lib/talloc_stack.c 2007-09-02 17:48:01 UTC (rev 24902)
@@ -100,8 +100,8 @@
TALLOC_CTX *talloc_tos(void)
{
if (talloc_stacksize == 0) {
+ talloc_stackframe();
DEBUG(0, ("no talloc stackframe around, leaking memory\n"));
- talloc_stackframe();
}
return talloc_stack[talloc_stacksize-1];
More information about the samba-cvs
mailing list