Skip to content

Commit c75da91

Browse files
committed
fixup - release margo resources
1 parent e1c75d2 commit c75da91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/src/margo_server.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ static margo_instance_id setup_remote_target(void)
9494

9595
/* initialize margo */
9696
margo_instance_id mid = margo_init(server_addr, MARGO_SERVER_MODE,
97-
margo_use_progress_thread, margo_service_pool_sz);
97+
margo_use_progress_thread,
98+
margo_service_pool_sz);
9899
if (mid == MARGO_INSTANCE_NULL) {
99100
LOGERR("margo_init(%s, SERVER_MODE, %d, %d) failed",
100101
server_addr, margo_use_progress_thread,
@@ -272,7 +273,8 @@ static margo_instance_id setup_local_target(void)
272273
/* initialize margo */
273274
const char* margo_protocol = PROTOCOL_MARGO_SHM;
274275
margo_instance_id mid = margo_init(margo_protocol, MARGO_SERVER_MODE,
275-
margo_use_progress_thread, margo_client_pool_sz);
276+
margo_use_progress_thread,
277+
margo_client_pool_sz);
276278
if (mid == MARGO_INSTANCE_NULL) {
277279
LOGERR("margo_init(%s, SERVER_MODE, %d, %d) failed", margo_protocol,
278280
margo_use_progress_thread, margo_client_pool_sz);
@@ -288,6 +290,7 @@ static margo_instance_id setup_local_target(void)
288290
HG_Error_to_string(hret));
289291
} else {
290292
self_string = get_margo_addr_str(mid, addr_self);
293+
margo_addr_free(mid, addr_self);
291294
}
292295
if (NULL == self_string) {
293296
LOGERR("failed to get margo address string");

0 commit comments

Comments
 (0)