pidgin: f0a88f24: Fix a leak "KuSh" discovered using "cppc...
datallah at pidgin.im
datallah at pidgin.im
Mon Dec 22 12:06:03 EST 2008
-----------------------------------------------------------------
Revision: f0a88f24c033907577f5dee8fa6279ff03aa443e
Ancestor: 76356e2951dc266397980d06c3480b550cd174d9
Author: datallah at pidgin.im
Date: 2008-12-22T16:50:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f0a88f24c033907577f5dee8fa6279ff03aa443e
Modified files:
libpurple/protocols/oscar/odc.c
ChangeLog:
Fix a leak "KuSh" discovered using "cppcheck". Fixes #7857.
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/odc.c db0d3b6a8b0e09f77bc233ee688ef1c4197299ad
+++ libpurple/protocols/oscar/odc.c e7f1f24a6267b2e8938e990c20aa784f014b8d90
@@ -567,6 +567,7 @@ peer_odc_recv_frame(PeerConnection *conn
{
purple_debug_info("oscar", "Unknown ODC frame type 0x%04hx, "
"subtype 0x%04hx.\n", frame->type, frame->subtype);
+ g_free(frame);
return;
}
@@ -607,6 +608,7 @@ peer_odc_recv_frame(PeerConnection *conn
g_free(tmp);
peer_connection_destroy(conn, OSCAR_DISCONNECT_LOCAL_CLOSED, NULL);
+ g_free(frame);
return;
}
More information about the Commits
mailing list