Commit 216291e7 authored by Philip Carns's avatar Philip Carns

fix various bugs in backwards compatibility


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@272 3b7491f3-a168-0410-bf4b-c445ed680a29
parent d9c57189
...@@ -753,13 +753,13 @@ static int getfile_internal_122(darshan_fd fd, struct darshan_job *job, ...@@ -753,13 +753,13 @@ static int getfile_internal_122(darshan_fd fd, struct darshan_job *job,
{ {
int ret; int ret;
ret = getfile_internal_1x(fd, job, file, 133, 12); ret = getfile_internal_1x(fd, job, file, 138, 14);
if(ret < 0) if(ret <= 0)
return(ret); return(ret);
shift_missing_1_22(file); shift_missing_1_22(file);
return(0); return(1);
} }
static int getfile_internal_121(darshan_fd fd, struct darshan_job *job, static int getfile_internal_121(darshan_fd fd, struct darshan_job *job,
...@@ -767,13 +767,13 @@ static int getfile_internal_121(darshan_fd fd, struct darshan_job *job, ...@@ -767,13 +767,13 @@ static int getfile_internal_121(darshan_fd fd, struct darshan_job *job,
{ {
int ret; int ret;
ret = getfile_internal_1x(fd, job, file, 138, 14); ret = getfile_internal_1x(fd, job, file, 133, 12);
if(ret < 0) if(ret <= 0)
return(ret); return(ret);
shift_missing_1_21(file); shift_missing_1_21(file);
return(0); return(1);
} }
static int getfile_internal_1x(darshan_fd fd, struct darshan_job *job, static int getfile_internal_1x(darshan_fd fd, struct darshan_job *job,
......
...@@ -200,9 +200,12 @@ int main(int argc, char **argv) ...@@ -200,9 +200,12 @@ int main(int argc, char **argv)
free(mnt_pts[i]); free(mnt_pts[i]);
free(fs_types[i]); free(fs_types[i]);
} }
if(mount_count > 0)
{
free(devs); free(devs);
free(mnt_pts); free(mnt_pts);
free(fs_types); free(fs_types);
}
darshan_log_close(file); darshan_log_close(file);
return(0); return(0);
......
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