Fix truncation line memory leak