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>
Wed, 28 Jan 2009 08:39:53 +0000 (09:39 +0100)
We allocated "request" with ippNew, so we also should ippDelete it.
(cherry picked from commit 783247bdce9268d44b14005ec3eb84c35e0cd71a)

source/printing/print_cups.c

index 8d32ddbc71e0394848a96310f81c16f8ff5a5521..1bb149cc866d5e9002a228853c161b937609ca20 100644 (file)
@@ -1710,6 +1710,10 @@ bool cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer)
        if (response)
                ippDelete(response);
 
+       if (request) {
+               ippDelete(request);
+       }
+
        if (language)
                cupsLangFree(language);