]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Fix leaks
authorPatrick Griffis <redacted>
Tue, 26 Jan 2016 04:36:06 +0000 (23:36 -0500)
committerPatrick Griffis <redacted>
Tue, 26 Jan 2016 04:36:06 +0000 (23:36 -0500)
src/common/dcc.c
src/common/plugin-identd.c

index 881bcf78d6bd33e69bc636f29fa6a6418151c45d..a7ed0988674cffab900d9284f03153b81b625ddd 100644 (file)
@@ -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)
        {
index 659fc4e687c49e80f2d990d359db6061f695f4b1..08aa33a84783a30e9976319ff7a05597162f3221 100644 (file)
@@ -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);