Commit 18704c37 authored by Jonathan Jenkins's avatar Jonathan Jenkins
Browse files

allow finalizing null ssgs

parent f24c8eac
Pipeline #56 skipped
...@@ -258,6 +258,8 @@ hg_return_t ssg_lookup(ssg_t s, hg_context_t *hgctx) ...@@ -258,6 +258,8 @@ hg_return_t ssg_lookup(ssg_t s, hg_context_t *hgctx)
void ssg_finalize(ssg_t s) void ssg_finalize(ssg_t s)
{ {
if (s == SSG_NULL) return;
for (int i = 0; i < s->num_addrs; i++) { for (int i = 0; i < s->num_addrs; i++) {
if (s->addrs[i] != HG_ADDR_NULL) HG_Addr_free(s->hgcl, s->addrs[i]); if (s->addrs[i] != HG_ADDR_NULL) HG_Addr_free(s->hgcl, s->addrs[i]);
} }
......
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