[Utils] Fix a memory leak in 9cd9ef1cafb1700a019b45a3360dde9b7b31ed79