summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-30 15:47:06 +0100
committerVolker Lendecke <vl@samba.org>2008-12-30 15:59:25 +0100
commitfee2664dad37536b05ce8bdae3e74d45b257f632 (patch)
treee729abe44f834639730d542e2a8e7480abd07cca /source3
parentb3abd484dbd7673120f7a7a9613789dc7aeb9341 (diff)
downloadsamba-fee2664dad37536b05ce8bdae3e74d45b257f632.tar.gz
samba-fee2664dad37536b05ce8bdae3e74d45b257f632.tar.bz2
samba-fee2664dad37536b05ce8bdae3e74d45b257f632.zip
Fix a memory leak in cups_pull_comment_location
We allocated "request" with ippNew, so we also should ippDelete it.
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/print_cups.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index ca3415ca5a..5fb1d379a6 100644
--- a/source3/printing/print_cups.c
+++ b/source3/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);