r24902: DEBUG might use talloc_tos() itself...
authorVolker Lendecke <vlendec@samba.org>
Sun, 2 Sep 2007 17:48:01 +0000 (17:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:28 +0000 (12:30 -0500)
source/lib/talloc_stack.c

index baebbd4fac9bbc3a6638a502f3aaaa36b24bdd27..e6e4ed321a52a08956e652f943f5452b81f4bbac 100644 (file)
@@ -100,8 +100,8 @@ TALLOC_CTX *talloc_stackframe(void)
 TALLOC_CTX *talloc_tos(void)
 {
        if (talloc_stacksize == 0) {
-               DEBUG(0, ("no talloc stackframe around, leaking memory\n"));
                talloc_stackframe();
+               DEBUG(0, ("no talloc stackframe around, leaking memory\n"));
        }
 
        return talloc_stack[talloc_stacksize-1];