Merge "st-hal: fix mem leak issue"