Fixed memory leaks in tests
This commit is contained in:
parent
9983fbbb83
commit
6907369aaf
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,8 @@ int test_complex_protobuf() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
Test3_free(test3);
|
||||
Test3_free(results);
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
@ -154,6 +156,8 @@ int test_write_simple() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
Test1_free(results);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue