From: Guus Sliepen Date: Tue, 29 Jul 2014 14:52:21 +0000 (+0200) Subject: Fix a memory leak. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=4c0df4e4a9c271268b12d42dea6f81217fe05ce1;p=meshlink Fix a memory leak. --- 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);