Fix Coverity ID 740 (RESOURCE_LEAK)
authorVolker Lendecke <vl@samba.org>
Fri, 13 Feb 2009 20:52:21 +0000 (21:52 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 13 Feb 2009 20:55:10 +0000 (21:55 +0100)
source3/printing/print_cups.c

index ecdd0e4f3839d1428d4cacbd010c86de61320b03..8e792a944a3b3283c8c8d8eae043f78f07de6140 100644 (file)
@@ -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);