Commit 5dc097b
calling fini functions to avoid memory leak (#791)
* Fix test memory leaks
1. calling rcutils_string_map_fini to avoid memory leak
2. Fix memory leak that not to call rcutils_string_array_fini for enclaves
3. Fix that not to rcutils_string_array_fini for node_names_2 and node_namespaces_2
4. Fix that not to rcl_log_levels_fini for copied_log_levels
5. Fix that not to call rmw_security_options_fini for options
6. Call test_msgs__srv__BasicTypes_Request__fini for service_request in the end
Signed-off-by: Chen Lihui <[email protected]>1 parent 2746f51 commit 5dc097b
File tree
5 files changed
+15
-0
lines changed- rcl/test/rcl
5 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
1438 | 1442 | | |
1439 | 1443 | | |
1440 | 1444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
| |||
0 commit comments