From c1307dbc5b7de36798ecaba3c36090f4bfc864e6 Mon Sep 17 00:00:00 2001 From: Alec Moskvin Date: Fri, 17 Jan 2025 10:39:33 -0500 Subject: [PATCH] [C] Fix dangling pointer in replay merge. (#1723) --- aeron-archive/src/main/c/client/aeron_archive_replay_merge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/aeron-archive/src/main/c/client/aeron_archive_replay_merge.c b/aeron-archive/src/main/c/client/aeron_archive_replay_merge.c index caec5db447..42c7e68059 100644 --- a/aeron-archive/src/main/c/client/aeron_archive_replay_merge.c +++ b/aeron-archive/src/main/c/client/aeron_archive_replay_merge.c @@ -721,6 +721,7 @@ static int aeron_archive_replay_merge_handle_async_destination(aeron_archive_rep } else if (rc < 0) { + replay_merge->async_destination = NULL; AERON_APPEND_ERR("%s", ""); return -1; }