Fixing a double-free error introduced in 1.2.13

Created by  pmeunier  on November 26, 2021
RLVQDUPYOWVNHTVFCHKNIQYNBRLOFY2UGIJPLD6U5S22AMEF5YSAC
Change contents