Commit b4d56b54 authored by Philip Carns's avatar Philip Carns

fix minor memory leak


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@681 3b7491f3-a168-0410-bf4b-c445ed680a29
parent b74736b8
......@@ -1683,6 +1683,7 @@ static int cp_log_write(struct darshan_job_runtime* final_job, int rank,
char* key;
char* value;
char* tok_str;
char* orig_tok_str;
char* saveptr = NULL;
MPI_Info info;
......@@ -1723,6 +1724,7 @@ static int cp_log_write(struct darshan_job_runtime* final_job, int rank,
tok_str = strdup(hints);
if(tok_str)
{
orig_tok_str = tok_str;
do
{
/* split string on semicolon */
......@@ -1742,7 +1744,7 @@ static int cp_log_write(struct darshan_job_runtime* final_job, int rank,
}
}
}while(key != NULL);
free(tok_str);
free(orig_tok_str);
}
}
......
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