diff options
author | Jeremy Allison <jra@samba.org> | 2005-05-03 07:33:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:46 -0500 |
commit | 316df944a456f150944761dab34add5e8c4ab699 (patch) | |
tree | e67e7c7804733e9b894d7010b505d41bf4c5eb3c /source/printing | |
parent | 4f431dfc6b57e1609672c4daa53ab5d62613f6d1 (diff) | |
download | samba-316df944a456f150944761dab34add5e8c4ab699.tar.gz samba-316df944a456f150944761dab34add5e8c4ab699.tar.xz samba-316df944a456f150944761dab34add5e8c4ab699.zip |
r6595: This is Volkers new-talloc patch. Just got the go-ahead from
Volker to commit. Woo Hoo !
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/notify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/printing/notify.c b/source/printing/notify.c index 0071d3d8c0d..e289eba1b69 100644 --- a/source/printing/notify.c +++ b/source/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; } |