interim fix memory leak
This commit is contained in:
parent
3090c485b6
commit
df623fffe8
1 changed files with 2 additions and 0 deletions
|
@ -643,6 +643,8 @@ int main(int argc, char ** argv) {
|
|||
calc_diff(cb_data);
|
||||
|
||||
// reset for next iteration
|
||||
for (auto ptr : cb_data.v_pos) free(ptr);
|
||||
for (auto ptr : cb_data.v_neg) free(ptr);
|
||||
cb_data.v_pos.clear();
|
||||
cb_data.v_neg.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue