Fix potential memleak (CID 198)