Project

General

Profile

Bug #242 ยป 0045-Initialize-and-free-clause-either_reqs.patch

Marko Lindqvist, 02/08/2024 07:13 AM

View differences:

common/diptreaty.c
clause_infos[i].enabled = FALSE;
requirement_vector_init(&(clause_infos[i].giver_reqs));
requirement_vector_init(&(clause_infos[i].receiver_reqs));
requirement_vector_init(&(clause_infos[i].either_reqs));
}
}
......
for (i = 0; i < CLAUSE_COUNT; i++) {
requirement_vector_free(&(clause_infos[i].giver_reqs));
requirement_vector_free(&(clause_infos[i].receiver_reqs));
requirement_vector_free(&(clause_infos[i].either_reqs));
}
}
    (1-1/1)