Mercurial > pidgin.yaz
changeset 24826:e17e325732d0
Fix a leak "KuSh" discovered using "cppcheck". Fixes #7857.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 22 Dec 2008 16:50:40 +0000 |
parents | 5d693af3e9e2 |
children | a9b4599a5367 |
files | libpurple/protocols/oscar/odc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }