summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-01-25 23:36:06 -0500
committerPatrick Griffis <tingping@tingping.se>2016-01-25 23:36:06 -0500
commit5c534ac344ab8646185e9c50198365eb774920a3 (patch)
treeb999febe36fefb3f4d7e46a0733e29f8d89b1f66 /src/common
parentea9e8d353b4efd68e1f5c7da5962313c7b662f39 (diff)
Fix leaks
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dcc.c2
-rw-r--r--src/common/plugin-identd.c3
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);