From ad07bb8dbd1c188d1c8840fd8aee893a11115140 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 13 Feb 2009 21:52:21 +0100 Subject: Fix Coverity ID 740 (RESOURCE_LEAK) --- source3/printing/print_cups.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') 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); -- cgit