Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
04396a74
Commit
04396a74
authored
Oct 28, 2010
by
Guillaume Mercier
Browse files
[svn-r7395] Fixed memory leak
parent
e1355e80
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mpid/ch3/channels/nemesis/nemesis/netmod/mx/mx_poll.c
View file @
04396a74
...
@@ -23,10 +23,10 @@ static mpid_nem_mx_hash_t *mpid_nem_mx_asreqs = NULL;
...
@@ -23,10 +23,10 @@ static mpid_nem_mx_hash_t *mpid_nem_mx_asreqs = NULL;
s->mx_req_ptr = (_mx_req); \
s->mx_req_ptr = (_mx_req); \
HASH_ADD(hh1, mpid_nem_mx_asreqs, mpid_req_ptr, sizeof(MPID_Request*), s); \
HASH_ADD(hh1, mpid_nem_mx_asreqs, mpid_req_ptr, sizeof(MPID_Request*), s); \
}while(0)
}while(0)
#define MPID_NEM_MX_GET_REQ_FROM_HASH(_mpi_req_ptr,_mx_req) do{ \
#define MPID_NEM_MX_GET_REQ_FROM_HASH(_mpi_req_ptr,_mx_req) do{
\
mpid_nem_mx_hash_t *s; \
mpid_nem_mx_hash_t *s;
\
HASH_FIND(hh1, mpid_nem_mx_asreqs, &(_mpi_req_ptr), sizeof(MPID_Request*), s); \
HASH_FIND(hh1, mpid_nem_mx_asreqs, &(_mpi_req_ptr), sizeof(MPID_Request*), s);
\
if(s){HASH_DELETE(hh1, mpid_nem_mx_asreqs, s); (_mx_req) = s->mx_req_ptr; } else {(_mx_req) = NULL;} \
if(s){HASH_DELETE(hh1, mpid_nem_mx_asreqs, s); (_mx_req) = s->mx_req_ptr;
MPIU_Free(s);
} else {(_mx_req) = NULL;} \
}while(0)
}while(0)
static
mpid_nem_mx_hash_t
*
mpid_nem_mx_connreqs
ATTRIBUTE
((
unused
,
used
))
=
NULL
;
static
mpid_nem_mx_hash_t
*
mpid_nem_mx_connreqs
ATTRIBUTE
((
unused
,
used
))
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment