# HG changeset patch # User Daniel Atallah # Date 1229964640 0 # Node ID e17e325732d0acbc440a291d4930b5afdb21a9f5 # Parent 5d693af3e9e27587a708b630e305e7474f5efa73 Fix a leak "KuSh" discovered using "cppcheck". Fixes #7857. diff -r 5d693af3e9e2 -r e17e325732d0 libpurple/protocols/oscar/odc.c --- a/libpurple/protocols/oscar/odc.c Mon Dec 22 16:41:53 2008 +0000 +++ b/libpurple/protocols/oscar/odc.c Mon Dec 22 16:50:40 2008 +0000 @@ -567,6 +567,7 @@ { 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 @@ g_free(tmp); peer_connection_destroy(conn, OSCAR_DISCONNECT_LOCAL_CLOSED, NULL); + g_free(frame); return; }