I'm executing the code with /usr/local/astrometry/bin/solve-field --skip-solved --crpix-center --scale-low 15.0 --scale-high 30.0 --scale-units degwidth NAME.jpg
The fits files are getting created very early. Looking at the -v output, image2pnm.py creates a handful of tmp files (tmp.uncompressed.* and tmp.ppm.*) then an-pnmtofits creates the tmp.fits.* file.
It looks like most of the tmp files get deleted after the *.axy file gets created.
Then there's a whole bunch of matching stuff.
The very last line printed is "Deleting temp file /tmp/tmp.ppm.55ABAu"
It looks to me like there just needs to be one more line at the end to delete the /tmp/tmp.fits.* file. It looks like all the other tmp files are being cleaned up.