add new malloc c code

Signed-off-by: Li Wang <liwan@redhat.com>