Fix r2 -c '?btw 1 1 1' /bin/ls (#11488)

There is no reason for the list returned by r_num_str_split_list
to have a link with a variable called 'free', and this cause crash with
ASAN, as seen on https://github.com/radare/radare2/issues/11407
This commit is contained in:
Michael Scherer 2018-09-12 03:40:51 +02:00 committed by radare
parent b25653ec2a
commit 3874b7b964

View File

@ -769,7 +769,7 @@ R_API int r_num_str_split(char *str) {
R_API RList *r_num_str_split_list(char *str) {
int i, count = r_num_str_split (str);
RList *list = r_list_newf (free);
RList *list = r_list_new ();
for (i = 0; i < count; i++) {
r_list_append (list, str);
str += strlen (str) + 1;