Skip to content

Commit edb0d97

Browse files
authored
Merge pull request #8665 from devreal/fix-info-get-nthkey-obj-release
info_get_nthkey: release the correct object
2 parents 843d8f4 + 9665467 commit edb0d97

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)