Free last status
authorRoy Marples <roy@marples.name>
Tue, 15 Jul 2014 19:24:13 +0000 (19:24 +0000)
committerRoy Marples <roy@marples.name>
Tue, 15 Jul 2014 19:24:13 +0000 (19:24 +0000)
src/dhcpcd-gtk/main.c

index b16f721395a67539412ddb6cb345d99f0c6fb361..56e2959ae31cab260ddd2291dc758728dd986c10 100644 (file)
@@ -270,6 +270,8 @@ dhcpcd_status_cb(DHCPCD_CONNECTION *con, const char *status, _unused void *data)
                        refresh = false;
                update_online(con, refresh);
        }
+
+       g_free(last);
        last = g_strdup(status);
 }