Skip to content

Commit 04b21c3

Browse files
committed
lightningd: fix overzealous memleak report.
Found by CI, not a real leak. Signed-off-by: Rusty Russell <[email protected]>
1 parent 08210da commit 04b21c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightningd/peer_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ static void json_add_peer(struct lightningd *ld,
23322332
/* If peer reports our IP remote_addr, add that here */
23332333
if (p->remote_addr)
23342334
json_add_string(response, "remote_addr",
2335-
fmt_wireaddr(response, p->remote_addr));
2335+
fmt_wireaddr(tmpctx, p->remote_addr));
23362336
}
23372337

23382338
/* Note: If !PEER_CONNECTED, peer may use different features on reconnect */

0 commit comments

Comments
 (0)