add freeing data when alloc is failed

No match.