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)
committerVolker Lendecke <vl@samba.org>
Tue, 30 Dec 2008 14:56:46 +0000 (15:56 +0100)
We allocated "request" with ippNew, so we also should ippDelete it.

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);