Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Memory leak found at main.c:90 #6

Closed
Rrooach opened this issue Nov 6, 2019 · 2 comments
Closed

Memory leak found at main.c:90 #6

Rrooach opened this issue Nov 6, 2019 · 2 comments

Comments

@Rrooach
Copy link

Rrooach commented Nov 6, 2019

Hello, I found a MEMORY LEAK in main.c:90
Below are steps followed to reproduce crash
Download latest source code from: https://github.com/cloudwu/rudp, compiled with clang and ASANexport CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"before make

ASAN Output

=================================================================
==25482==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 120 byte(s) in 1 object(s) allocated from:
    #0 0x4b8818  (/root/temp/ICS/rudp/rudp+0x4b8818)
    #1 0x4e9d94  (/root/temp/ICS/rudp/rudp+0x4e9d94)

SUMMARY: AddressSanitizer: 120 byte(s) leaked in 1 allocation(s).

it seems that you have a double free issue.

cloudwu added a commit that referenced this issue Nov 7, 2019
@cloudwu
Copy link
Owner

cloudwu commented Nov 7, 2019

Thanks, it's a memory leak, but I don't think it's a double free issue.

@Rrooach
Copy link
Author

Rrooach commented Nov 7, 2019

I'm not familiar with your program structure, but it looks like that some space was not free properly, I will close this issue.

@Rrooach Rrooach closed this as completed Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants