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

core: fixed two double free() situations #753

Merged
merged 2 commits into from
Aug 22, 2016

Conversation

dragos-oancea
Copy link

I ran into these while testing with SIPP and having memlog=1 :

kamailio[21826]: : [mem/q_malloc.c:453]: qm_free(): BUG: qm_free: freeing already freed pointer (0x7f24869850f8), called
from : parser/contact/parse_contact.c: free_contact(109), first free : parser/contact/parse_contact.c: free_contact(109) - aborting

kamailio[21540]: : [mem/q_malloc.c:453]: qm_free(): BUG: qm_free: freeing already freed pointer (0x7f4161b971c0), called
from : data_lump_rpl.c: free_lump_rpl(107), first free : data_lump_rpl.c: free_lump_rpl(107) - aborting

These two patches fix these two separate issues.

@miconda
Copy link
Member

miconda commented Aug 22, 2016

In the patch for cleaning the hdr ( 2188baf), the 'if(foo)' is not needed, because the while condition tests the same value already.

@dragos-oancea
Copy link
Author

I changed the commit (I removed the extra check).

@miconda miconda merged commit e34ecb3 into kamailio:master Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants