This commit is contained in:
Maryna Kravtsova 2020-11-03 18:11:41 +01:00
parent dbd2844ed5
commit 3ff32fafa1

View File

@ -56,7 +56,6 @@ struct car* clear_train(struct car* first, const char* target) {
int result = strcmp(first->value, target); int result = strcmp(first->value, target);
if(result == 0){ if(result == 0){
free(first); free(first);
free(first->value);
return 0; return 0;
} }
} }