fix memory leak

Signed-off-by: Ruoyu <liangry@ucweb.com>