a test case for memory bug
Merge https://github.com/wangli5665/redhat