diff options
-rw-r--r-- | src/common/dcc.c | 2 | ||||
-rw-r--r-- | src/common/plugin-identd.c | 3 |
2 files changed, 5 insertions, 0 deletions
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); |