Commit 0fbb4c1a authored by Anmol Vatsa's avatar Anmol Vatsa

add logic to free rp_elem remote source

parent f390aab4
......@@ -551,6 +551,9 @@ void cn_rp_elem_free(struct cn_rp_elem * elem) {
if (cn_rp_elem_is_membrane(elem)) {
cn_cnode_meta_free(elem->membrane.sender_meta);
}
if(elem->source == CN_RP_ELEM_SOURCE_REMOTE) {
free(elem->remote->remote_end);
}
g_slice_free1(sizeof(struct cn_rp_elem), elem);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment