Skip to content

Commit 9665467

Browse files
committed
info_get_nthkey: release the correct object
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent 8b27377 commit 9665467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpi/c/info_get_nthkey.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int MPI_Info_get_nthkey(MPI_Info info, int n, char *key)
9494
err = ompi_info_get_nthkey (info, n, &key_str);
9595
if (NULL != key_str) {
9696
opal_string_copy(key, key_str->string, MPI_MAX_INFO_KEY);
97-
OBJ_RELEASE(key);
97+
OBJ_RELEASE(key_str);
9898
}
9999
OMPI_ERRHANDLER_NOHANDLE_RETURN(err, err, FUNC_NAME);
100100
}

0 commit comments

Comments
 (0)