Updater: Fix a memory leak