diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 51ebb739a33..858647a52f4 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -665,6 +665,10 @@ cups_job_submit(int snum, struct printjob *pjob) httpClose(http); + if ( ret == 0 ) + unlink(pjob->filename); + /* else print_job_end will do it for us */ + return (ret); }