we set props is null,so we should malloc when use

malloc when use props.