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:
7d73130
)
Fix Coverity ID 740 (RESOURCE_LEAK)
author
Volker Lendecke
<vl@samba.org>
Fri, 13 Feb 2009 20:52:21 +0000
(21:52 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 13 Feb 2009 20:55:10 +0000
(21:55 +0100)
source3/printing/print_cups.c
patch
|
blob
|
history
diff --git
a/source3/printing/print_cups.c
b/source3/printing/print_cups.c
index ecdd0e4f3839d1428d4cacbd010c86de61320b03..8e792a944a3b3283c8c8d8eae043f78f07de6140 100644
(file)
--- a/
source3/printing/print_cups.c
+++ b/
source3/printing/print_cups.c
@@
-1365,6
+1365,8
@@
static int cups_queue_get(const char *sharename,
if (!pull_utf8_talloc(frame, &msg,
attr->values[0].string.text,
&size)) {
+ SAFE_FREE(queue);
+ qcount = 0;
goto out;
}
fstrcpy(status->message, msg);