clear
This commit is contained in:
parent
8479e19522
commit
d4212aaf74
@ -68,6 +68,8 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
struct car* only = prev->next;
|
struct car* only = prev->next;
|
||||||
free(prev);
|
free(prev);
|
||||||
prev = only;
|
prev = only;
|
||||||
|
free(only);
|
||||||
|
only = NULL;
|
||||||
return first;
|
return first;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user