summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);