Variable 'fp' going out of scope leaks the storage it points to