Bug #242 ยป 0045-Initialize-and-free-clause-either_reqs.patch
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));
|
||
}
|
||
}
|
||