]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix a memory leak in cups_pull_comment_location
authorVolker Lendecke <vl@samba.org>
Tue, 30 Dec 2008 14:47:06 +0000 (15:47 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Jan 2009 11:44:27 +0000 (12:44 +0100)
We allocated "request" with ippNew, so we also should ippDelete it.
(cherry picked from commit 6118aaeb2d4b164c5ed213aa2ae25ed13bfe1c22)

source/printing/print_cups.c

index ca3415ca5a0cfec652091eb64425e9364016c11e..5fb1d379a6322563759a33f79f263924ffe5ba95 100644 (file)
@@ -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);