This commit is contained in:
Maryna Kravtsova 2020-11-03 21:32:46 +01:00
parent 6b862ba9d7
commit 3917d656f3

View File

@ -85,7 +85,7 @@ struct car* clear_train(struct car* first, const char* target) {
int x = strcmp(this->value, target);
if(x == 0){
first = this->next;
free(this)
free(this);
this->next = NULL;
//free(this->next);