From 01b65cb84beec9278e1ee6fd1fd20541adf54e3d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 30 Dec 2008 15:47:06 +0100 Subject: [PATCH] Fix a memory leak in cups_pull_comment_location We allocated "request" with ippNew, so we also should ippDelete it. (cherry picked from commit 6118aaeb2d4b164c5ed213aa2ae25ed13bfe1c22) --- source/printing/print_cups.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/printing/print_cups.c b/source/printing/print_cups.c index ca3415ca5a0..5fb1d379a63 100644 --- a/source/printing/print_cups.c +++ b/source/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); -- 2.47.2