summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/context.c1
-rw-r--r--src/plugins/resource-native/resource-client.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/context.c b/src/core/context.c
index fd01cce..a0a28b5 100644
--- a/src/core/context.c
+++ b/src/core/context.c
@@ -62,6 +62,7 @@ void mrp_context_destroy(mrp_context_t *c)
if (c != NULL) {
console_cleanup(c);
mrp_mainloop_destroy(c->ml);
+ c->ml = NULL;
mrp_free(c);
}
diff --git a/src/plugins/resource-native/resource-client.c b/src/plugins/resource-native/resource-client.c
index 146240b..a920eb3 100644
--- a/src/plugins/resource-native/resource-client.c
+++ b/src/plugins/resource-native/resource-client.c
@@ -1774,6 +1774,7 @@ int main(int argc, char **argv)
mrp_transport_destroy(client->transp);
mrp_mainloop_destroy(client->ml);
+ client->ml = NULL;
mrp_free((void *)client->name);
resource_def_array_free(client->resources);
str_array_free(client->class_names);