Free some variables when not needed anymore