From 4c0df4e4a9c271268b12d42dea6f81217fe05ce1 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 29 Jul 2014 16:52:21 +0200 Subject: [PATCH] Fix a memory leak. --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index 0f6e5f8c..f173c8d2 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -515,7 +515,7 @@ static bool finalize_join(meshlink_handle_t *mesh) { free(mesh->self->name); free(mesh->self->connection->name); mesh->self->name = xstrdup(name); - mesh->self->connection->name = xstrdup(name); + mesh->self->connection->name = name; fprintf(stderr, "Configuration stored in: %s\n", mesh->confbase); -- 2.39.5