git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e7a69
)
Fix a memory leak in cups_pull_comment_location
author
Volker Lendecke
<vl@samba.org>
Tue, 30 Dec 2008 14:47:06 +0000
(15:47 +0100)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source/printing/print_cups.c
b/source/printing/print_cups.c
index 8d32ddbc71e0394848a96310f81c16f8ff5a5521..1bb149cc866d5e9002a228853c161b937609ca20 100644
(file)
--- a/
source/printing/print_cups.c
+++ b/
source/printing/print_cups.c
@@
-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);