Skip to content

Commit 71a1610

Browse files
committed
Fix leak in disterl demonitor
Fixes #1782 Signed-off-by: Paul Guyot <[email protected]>
1 parent df09ed8 commit 71a1610

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libAtomVM/dist_nifs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ static term nif_erlang_dist_ctrl_put_data(Context *ctx, int argc, term argv[])
540540
&& memcmp(remote_monitor->ref_words, ref_words, ref_len * sizeof(uint32_t)) == 0) {
541541
enif_demonitor_process(erl_nif_env_from_context(ctx), conn_obj, &remote_monitor->process_monitor);
542542
list_remove(item);
543+
free(remote_monitor);
543544
break;
544545
}
545546
}

0 commit comments

Comments
 (0)