From 5c534ac344ab8646185e9c50198365eb774920a3 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Mon, 25 Jan 2016 23:36:06 -0500 Subject: Fix leaks --- src/common/dcc.c | 2 ++ src/common/plugin-identd.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/common/dcc.c b/src/common/dcc.c index 881bcf78..a7ed0988 100644 --- a/src/common/dcc.c +++ b/src/common/dcc.c @@ -2122,6 +2122,8 @@ update_is_resumable (struct DCC *dcc) dcc->resume_error = 1; } + g_free (filename_fs); + /* Now verify that this DCC is not already in progress from someone else */ if (dcc->resumable) { diff --git a/src/common/plugin-identd.c b/src/common/plugin-identd.c index 659fc4e6..08aa33a8 100644 --- a/src/common/plugin-identd.c +++ b/src/common/plugin-identd.c @@ -108,7 +108,10 @@ identd_read_ready (GDataInputStream *in_stream, GAsyncResult *res, ident_info *i local = g_ascii_strtoull (read_buf, NULL, 0); p = strchr (read_buf, ','); if (!p) + { + g_free (read_buf); goto cleanup; + } remote = g_ascii_strtoull (p + 1, NULL, 0); g_free (read_buf); -- cgit 1.4.1