Fixed read after free bug

pull/19/head
mananapr 5 years ago
parent d284e90516
commit cf51d08142

@ -280,7 +280,7 @@ void getLastToken(char *tokenizer)
pch = strtok(temp_dir, tokenizer); pch = strtok(temp_dir, tokenizer);
while (pch != NULL) while (pch != NULL)
{ {
last = pch; last = strdup(pch);
pch = strtok(NULL,tokenizer); pch = strtok(NULL,tokenizer);
} }
} }

Loading…
Cancel
Save