Plugged memory leak in BatchUpload module.