Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for memory leakages in UnetSocket C APIs #65

Open
notthetup opened this issue Oct 22, 2021 · 1 comment
Open

Check for memory leakages in UnetSocket C APIs #65

notthetup opened this issue Oct 22, 2021 · 1 comment
Assignees

Comments

@notthetup
Copy link
Collaborator

@notthetup
Copy link
Collaborator Author

In context of our conversation.. leaks actually works well on the APIs..

❯ leaks --atExit -- ./txdata localhost 1 1101
Connecting to localhost:1101
Transmitting 9 bytes of data to 1
Transmission Complete
Process:         txdata [83534]
Path:            /Users/USER/Documents/*/txdata
Load Address:    0x106643000
Identifier:      txdata
Version:         ???
Code Type:       X86-64
Platform:        macOS
Parent Process:  leaks [83533]

Date/Time:       2021-06-11 20:23:14.347 +0800
Launch Time:     2021-06-11 20:23:13.857 +0800
OS Version:      macOS 11.4 (20F71)
Report Version:  7
Analysis Tool:   /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version:  Xcode 12.5 (12E262)

Physical footprint:         496K
Physical footprint (peak):  496K
----

leaks Report Version: 4.0
Process 83534: 212 nodes malloced for 20 KB
Process 83534: 5 leaks for 80 total leaked bytes.

    5 (80 bytes) << TOTAL >>
      1 (16 bytes) ROOT LEAK: 0x7fec1ba04080 [16]  length: 9  "transport"
      1 (16 bytes) ROOT LEAK: 0x7fec1ba04170 [16]  length: 9  "transport"
      1 (16 bytes) ROOT LEAK: 0x7fec1ba04180 [16]  length: 6  "router"
      1 (16 bytes) ROOT LEAK: 0x7fec1ba04190 [16]  length: 6  "uwlink"
      1 (16 bytes) ROOT LEAK: 0x7fec1ba041a0 [16]  length: 3  "phy"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants