fix memleak on hint free