summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-13 21:52:21 +0100
committerVolker Lendecke <vl@samba.org>2009-02-13 21:55:10 +0100
commitad07bb8dbd1c188d1c8840fd8aee893a11115140 (patch)
treeaa8f4a48321294d2842f607fda81a1f9dd9d725b /source3
parent7d73130125723425e8884b00ca20ab77788f39d8 (diff)
downloadsamba-ad07bb8dbd1c188d1c8840fd8aee893a11115140.tar.gz
samba-ad07bb8dbd1c188d1c8840fd8aee893a11115140.tar.bz2
samba-ad07bb8dbd1c188d1c8840fd8aee893a11115140.zip
Fix Coverity ID 740 (RESOURCE_LEAK)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/print_cups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index ecdd0e4f38..8e792a944a 100644
--- 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);