SAVANNA-2538: Fix memory leak in upload.
Merge pull request #2 from seomoz/savanna-2538

SAVANNA-2538: Fix memory leak in upload.

Dan has looked at this. He says it's harmless, but neither of us is completely sure this fixes the leak. Plan: deploy it & see.