conncheck: fix incoming checks memory leak
authorFabrice Bellet <fabrice@bellet.info>
Sun, 16 Jun 2019 19:04:41 +0000 (21:04 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 4 Jul 2019 21:03:43 +0000 (17:03 -0400)
agent/conncheck.c

index 068705d..7a8c73a 100644 (file)
@@ -1747,6 +1747,9 @@ conn_check_remote_candidates_set(NiceAgent *agent, NiceStream *stream,
           priv_mark_pair_nominated (agent, stream, component,
               lcand, rcand);
 
+        if (icheck->username)
+          g_free (icheck->username);
+        g_slice_free (IncomingCheck, icheck);
         g_queue_delete_link (&component->incoming_checks, k);
         break;
       }