remove 'use-after-free'

This commit is contained in:
Luna 2019-10-20 11:59:15 -03:00
parent a18809eb5b
commit cdca993048
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
var rd_line = readline.readline(c"> ");
if (rd_line == null) break;
readline.add_history(rd_line);
defer std.heap.c_allocator.destroy(rd_line);
//defer std.heap.c_allocator.destroy(rd_line);
var line = rd_line[0..std.mem.len(u8, rd_line)];