Skip to content

Commit b0e1bde

Browse files
vtjnashElOceanografo
authored andcommitted
win: fix memory leak in dllist
1 parent 3e0c5f3 commit b0e1bde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ JL_DLLEXPORT int jl_dllist(jl_array_t *list)
606606
continue;
607607
jl_array_grow_end((jl_array_t*)list, 1);
608608
jl_value_t *v = jl_cstr_to_string(path);
609+
free(path);
609610
jl_array_ptr_set(list, jl_array_dim0(list) - 1, v);
610611
}
611612
free(hMods);

0 commit comments

Comments
 (0)