summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/print_cups.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 51ebb739a3..858647a52f 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);
}