s6245: Fix a memory leak in an error path
This commit is contained in:
parent
b056fcfb8d
commit
fb0859ede0
|
@ -991,6 +991,7 @@ static int shinkos6245_read_parse(void *vctx, const void **vjob, int data_fd, in
|
|||
|
||||
if (job->jp.media) {
|
||||
ERROR("Don't support multi-cut with panorama!\n");
|
||||
sinfonia_cleanup_job(job);
|
||||
return CUPS_BACKEND_CANCEL;
|
||||
}
|
||||
|
||||
|
@ -1010,10 +1011,10 @@ static int shinkos6245_read_parse(void *vctx, const void **vjob, int data_fd, in
|
|||
sinfonia_cleanup_job(job);
|
||||
|
||||
return rval;
|
||||
} else {
|
||||
*vjob = job;
|
||||
}
|
||||
|
||||
*vjob = job;
|
||||
|
||||
return CUPS_BACKEND_OK;
|
||||
}
|
||||
|
||||
|
@ -1468,7 +1469,7 @@ static const char *shinkos6245_prefixes[] = {
|
|||
|
||||
const struct dyesub_backend shinkos6245_backend = {
|
||||
.name = "Sinfonia CHC-S6245 / Kodak 8810",
|
||||
.version = "0.41" " (lib " LIBSINFONIA_VER ")",
|
||||
.version = "0.42" " (lib " LIBSINFONIA_VER ")",
|
||||
.uri_prefixes = shinkos6245_prefixes,
|
||||
.cmdline_usage = shinkos6245_cmdline,
|
||||
.cmdline_arg = shinkos6245_cmdline_arg,
|
||||
|
|
Loading…
Reference in a new issue