fix mallocings
update release
Merge branch 'release/0.3' into develop