From 7b9d6ac23e1a7d8136fffd2e3977b09a815da65a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 3 May 2005 07:33:49 +0000 Subject: r6595: This is Volkers new-talloc patch. Just got the go-ahead from Volker to commit. Woo Hoo ! Jeremy. (This used to be commit 316df944a456f150944761dab34add5e8c4ab699) --- source3/printing/notify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/printing/notify.c') diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 0071d3d8c0..e289eba1b6 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -130,7 +130,7 @@ static void print_notify_send_messages_to_printer(const char *printer, unsigned if (strequal(printer, pq->msg->printer)) { if (!flatten_message(pq)) { DEBUG(0,("print_notify_send_messages: Out of memory\n")); - talloc_destroy_pool(send_ctx); + talloc_free_children(send_ctx); num_messages = 0; return; } @@ -143,7 +143,7 @@ static void print_notify_send_messages_to_printer(const char *printer, unsigned buf = TALLOC(send_ctx, offset); if (!buf) { DEBUG(0,("print_notify_send_messages: Out of memory\n")); - talloc_destroy_pool(send_ctx); + talloc_free_children(send_ctx); num_messages = 0; return; } @@ -201,7 +201,7 @@ void print_notify_send_messages(unsigned int timeout) while (print_notify_messages_pending()) print_notify_send_messages_to_printer(notify_queue_head->msg->printer, timeout); - talloc_destroy_pool(send_ctx); + talloc_free_children(send_ctx); num_messages = 0; } -- cgit