remove 'use-after-free'
This commit is contained in:
parent
a18809eb5b
commit
cdca993048
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
|
||||||
var rd_line = readline.readline(c"> ");
|
var rd_line = readline.readline(c"> ");
|
||||||
if (rd_line == null) break;
|
if (rd_line == null) break;
|
||||||
readline.add_history(rd_line);
|
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)];
|
var line = rd_line[0..std.mem.len(u8, rd_line)];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue