# HG changeset patch # User Andreas Monitzer # Date 1182297292 0 # Node ID 9edab4849ba85d356f0db8a89b5347613d422210 # Parent 906ed2836a04243bf66ce1cc7c4c0acbfea38afd Fixed a leak in the PEP code that leaked PEP nodes when the server doesn't support this XEP. diff -r 906ed2836a04 -r 9edab4849ba8 libpurple/protocols/jabber/pep.c --- a/libpurple/protocols/jabber/pep.c Tue Jun 19 23:34:16 2007 +0000 +++ b/libpurple/protocols/jabber/pep.c Tue Jun 19 23:54:52 2007 +0000 @@ -108,8 +108,11 @@ void jabber_pep_publish(JabberStream *js, xmlnode *publish) { JabberIq *iq; - if(js->pep != TRUE) /* ignore when there's no PEP support on the server */ + if(js->pep != TRUE) { + /* ignore when there's no PEP support on the server */ + xmlnode_free(publish); return; + } iq = jabber_iq_new(js, JABBER_IQ_SET);