Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_size is just for used to return the lentgth of ID string. Removing this flb_free does not cause memory leaks. ``` % leaks -atExit -- bin/flb-it-utils test_flb_utils_get_machine_id flb-it-utils(34841) MallocStackLogging: could not tag MSL-related memory as no_footprint, so those pages will be included in process footprint - (null) flb-it-utils(34841) MallocStackLogging: recording malloc and VM allocation stacks using lite mode Test test_flb_utils_get_machine_id... [ OK ] SUCCESS: All unit tests have passed. Process 34841 is not debuggable. Due to security restrictions, leaks can only show or save contents of readonly memory of restricted processes. Process: flb-it-utils [34841] Path: /Users/USER/*/flb-it-utils Load Address: 0x1023cc000 Identifier: flb-it-utils Version: 0 Code Type: ARM64 Platform: macOS Parent Process: leaks [34840] Date/Time: 2024-03-06 23:42:29.641 +0900 Launch Time: 2024-03-06 23:42:29.596 +0900 OS Version: macOS 14.3.1 (23D60) Report Version: 7 Analysis Tool: /usr/bin/leaks Physical footprint: 4385K Physical footprint (peak): 4385K Idle exit: untracked ---- leaks Report Version: 4.0, multi-line stacks Process 34841: 516 nodes malloced for 42 KB Process 34841: 0 leaks for 0 total leaked bytes. ``` Signed-off-by: Hiroshi Hatake <[email protected]>
- Loading branch information