Skip to content

Commit bf349b6

Browse files
committed
[C] Fix potential memory leak. Use correct action with publication notification.
1 parent 7fc2ea0 commit bf349b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aeron-driver/src/main/c/aeron_driver_sender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void aeron_driver_sender_on_remove_publication(void *clientd, void *command)
322322
}
323323

324324
if (aeron_udp_channel_interceptors_publication_notifications(
325-
transport->data_paths, transport, publication, AERON_UDP_CHANNEL_INTERCEPTOR_ADD_NOTIFICATION) < 0)
325+
transport->data_paths, transport, publication, AERON_UDP_CHANNEL_INTERCEPTOR_REMOVE_NOTIFICATION) < 0)
326326
{
327327
AERON_APPEND_ERR("%s", "sender on_remove_publication interceptors publication notifications");
328328
aeron_driver_sender_log_error(sender);

0 commit comments

Comments
 (0)