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

Fix memory leaks upon disconnect #36

Open
wants to merge 70 commits into
base: master
Choose a base branch
from
Open

Fix memory leaks upon disconnect #36

wants to merge 70 commits into from

Conversation

horazont
Copy link

Hi there,

First, thanks for libstrophe. I was in the need for a sleek C XMPP library and it comes in really handy. Please merge the two memleak fixes I attached, so that my router won't crash after a few days :).

(1) the connection did not release its sendqueue in xmpp_conn_release.
(2) the connection did not release its TLS context in xmpp_conn_release.

regards,
Jonas

Russell Zuck and others added 30 commits August 6, 2012 10:49
Options --with-libxml2 and --without-libxml2 are broken. libstrophe is
always built with libxml2 support. This patch fixes the problem and
makes libstrophe be built with expat support by default.
zero-length buffer will cause problem within 'base64_decoded_len' and
with use of uninitialized 'hextet'
size_t is unsigned type. We should declare len as either ssize_t or int
pasis and others added 30 commits October 16, 2012 11:00
Also fixed possible null pointer dereference in _add_key.
implement list_init
implement list_init_item
implement list_pull_first
implement list_insert
implememt list_append
rename list_pull_first
rename list_pull_next
rename list_pull_last
rename list_append
implement list_get_first
implement list_get_next
implement list_pop_by_data
Addition of ping namespace
(1) the connection did not release its sendqueue in
    xmpp_conn_release.
(2) the connection did not release its TLS context in
    xmpp_conn_release.
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.

3 participants