From: Volker Lendecke Date: Tue, 30 Dec 2008 14:47:06 +0000 (+0100) Subject: Fix a memory leak in cups_pull_comment_location X-Git-Tag: samba-3.3.0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01b65cb84beec9278e1ee6fd1fd20541adf54e3d;p=thirdparty%2Fsamba.git 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) --- 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);