Skip to content

Commit b2aca6c

Browse files
committed
ompi/proc: plug a memory leak in ompi_proc_unpack()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent ae278fd commit b2aca6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/proc/proc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,8 @@ ompi_proc_unpack(opal_buffer_t* buf,
812812
/* Save the hostname */
813813
plist[i]->super.proc_hostname = new_hostname;
814814
}
815+
} else if (NULL != new_hostname) {
816+
free(new_hostname);
815817
}
816818
}
817819

0 commit comments

Comments
 (0)