Free all the unpacked values if breaking out of g_variant_iter_loop 51/237151/1
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 25 Jun 2020 09:38:43 +0000 (18:38 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 25 Jun 2020 09:38:49 +0000 (18:38 +0900)
Change-Id: Ib5e67dfa852f38431f19ed66a540275165073724

plugin/monitor/stc-plugin-monitor-connection.c

index a305002..02a12ac 100755 (executable)
@@ -489,6 +489,8 @@ static stc_error_e __get_default_connection(GDBusConnection *connection)
                        if (comp && comp->data)
                                g_default_connection = comp->data;
 
+                       g_free(object_path);
+                       g_variant_iter_free(next);
                        break;
                }
        }