From fee2664dad37536b05ce8bdae3e74d45b257f632 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 30 Dec 2008 15:47:06 +0100 Subject: Fix a memory leak in cups_pull_comment_location We allocated "request" with ippNew, so we also should ippDelete it. --- source3/printing/print_cups.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index ca3415ca5a..5fb1d379a6 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -1769,6 +1769,10 @@ bool cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer) if (response) ippDelete(response); + if (request) { + ippDelete(request); + } + if (language) cupsLangFree(language); -- cgit