Fixed double free issue in pua module