SAVANNA-2538: Fix memory leak in upload.