Skip to content

Commit

Permalink
lightningd: fix trivial memleak.
Browse files Browse the repository at this point in the history
Mainly, it just causes complaints if we're running a lightningd which is installed
(in which case, my_path is not stolen, unlike running locally installed).

Reported-by: daywalker90
Fixes: #7569
Changelog-None: regression this release
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and ShahanaFarooqui committed Aug 14, 2024
1 parent fb3579c commit d29933b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/lightningd.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static const char *find_my_directory(const tal_t *ctx, const char *argv0)
/* Determine the correct daemon dir. */
static void find_subdaemons_and_plugins(struct lightningd *ld, const char *argv0)
{
const char *my_path = find_my_directory(NULL, argv0);
const char *my_path = find_my_directory(tmpctx, argv0);
const char *prefix;

/* If we're running in-tree, all the subdaemons are with lightningd. */
Expand Down

0 comments on commit d29933b

Please sign in to comment.