1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00
Go to file
Dmitry Podgorny 6c649a9de8 Fix memory leak of presence object
The memory leak happens when a presence is received for a MUC room. The
JID is not present in the roster, so updating its status is ignored. We
have to free resource in this case, because it has no owner and is lost
otherwise.

==25736== 47 (32 direct, 15 indirect) bytes in 1 blocks are definitely lost in loss record 1,625 of 3,399
==25736==    at 0x4A330FF: malloc (vg_replace_malloc.c:309)
==25736==    by 0x13A962: resource_new (resource.c:47)
==25736==    by 0x145501: _available_handler (presence.c:665)
==25736==    by 0x145501: _presence_handler (presence.c:399)
==25736==    by 0x145501: _presence_handler (presence.c:358)
==25736==    by 0x80D5F34: handler_fire_stanza (in /usr/lib64/libstrophe.so.0.0.0)
==25736==    by 0x80D2B49: _handle_stream_stanza (in /usr/lib64/libstrophe.so.0.0.0)
==25736==    by 0x80E15CE: _end_element (in /usr/lib64/libstrophe.so.0.0.0)
==25736==    by 0x843EE9B: doContent (in /usr/lib64/libexpat.so.1.6.10)
==25736==    by 0x843F94B: contentProcessor (in /usr/lib64/libexpat.so.1.6.10)
==25736==    by 0x8441E77: XML_ParseBuffer (in /usr/lib64/libexpat.so.1.6.10)
==25736==    by 0x80D586B: xmpp_run_once (in /usr/lib64/libstrophe.so.0.0.0)
==25736==    by 0x13E07E: connection_check_events (connection.c:119)
==25736==    by 0x13869C: prof_run (profanity.c:129)

Fixes #1279.
2020-02-23 08:51:36 +02:00
.builds Add builds.sr.ht CI for OpenBSD 2020-02-17 10:54:15 +01:00
.github Lift 50 issues ban :-) 2020-02-03 16:25:10 +01:00
apidocs Update copyright 2018-01-21 15:00:02 +00:00
docs Possibility to specify alternative config file 2019-08-02 15:55:47 +02:00
icons better, final icons 2016-03-09 12:55:57 +01:00
src Fix memory leak of presence object 2020-02-23 08:51:36 +02:00
tests Add slashguard feature 2020-03-18 18:20:05 +01:00
themes Add jubalian theme 2020-03-25 15:45:59 +01:00
.gitignore Add zipfiles to gitignore 2020-02-03 16:25:50 +01:00
.travis.yml Add builds.sr.ht CI for OpenBSD 2020-02-17 10:54:15 +01:00
bootstrap.sh Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
Brewfile.travis Add cmocka to brewfile 2019-07-18 09:07:57 +02:00
CHANGELOG Update changelog for 0.8.1 2020-02-07 21:46:16 +01:00
ci-build.sh Add builds.sr.ht CI for OpenBSD 2020-02-17 10:54:15 +01:00
configure-debug Include python plugins by default in build 2016-07-24 01:34:02 +01:00
configure-plugins Added python plugins code 2016-02-24 00:31:55 +00:00
configure.ac Add builds.sr.ht CI for OpenBSD 2020-02-17 10:54:15 +01:00
CONTRIBUTING.md Add CONTRIBUTING.md 2019-07-23 09:25:17 +02:00
COPYING Added GPL 2012-02-20 20:07:38 +00:00
Dockerfile.arch Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
Dockerfile.debian Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
Dockerfile.tumbleweed Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
LICENSE.txt Update copyright years 2019-04-24 01:08:38 +02:00
Makefile.am xep-0084: add test stub file 2019-12-18 15:44:59 +01:00
prof.supp Dirty fix libgcrypt memleak 2019-07-11 14:25:42 +02:00
profanity.spec Release 0.8.1 2020-02-07 21:47:41 +01:00
profrc.example XEP-0392: config: add "color.nick" bool option 2019-12-03 21:10:39 +01:00
README.md readem: add chat badge 2020-02-25 13:57:09 +01:00
RELEASE_GUIDE.md Update RELEASE_GUIDE.md 2019-12-12 15:05:04 +01:00
theme_template Add history.muc.color to theme template 2020-03-25 15:45:23 +01:00

Profanity

Build Status builds.sr.ht status Chat

Profanity is a console based XMPP client inspired by Irssi.

If you like Profanity consider becoming a sponsor or donate some money.

alt tag

See the User Guide for information on installing and using Profanity.

Homepage: https://profanity-im.github.io/

Mailing List: https://groups.google.com/forum/#!forum/profanitydev

MUC: profanity@rooms.dismail.de

Plugins repository: https://github.com/profanity-im/profanity-plugins