[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kopete/0.12/kopete/protocols/yahoo/libkyahoo
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-05-15 14:39:37
Message-ID: 1147703977.515308.7457.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 541088 by mueller:

fix memory leak (CID 2114)


 M  +1 -1      ymsgprotocol.cpp  


--- branches/kopete/0.12/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp \
#541087:541088 @@ -351,12 +351,12 @@
 			kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << " setting packet key [" << QString(key) \
<< "] to " << QString(value) << endl;  t->setParam(QString(key).toInt(), value);
 			free(value);
-			free(key);
 		}
 		else
 		{
 			kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << " key not accepted" << endl;
 		}
+		free(key);
 	}
 
 	// Packets consisting of several YMSG-packets sometimes contain padding chars \
(0x00) -> filter out


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic