Skip to content

Commit

Permalink
[XrdPosix] Fix various memory related issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 17, 2018
1 parent d16791f commit 1dcbe2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/XrdPosix/XrdPosixLinkage.cc
Expand Up @@ -301,7 +301,7 @@ void XrdPosixLinkage::Missing(const char *epname)
if (epname) epList = new Missing(epList, epname);
else {Missing *np = epList;
while(np) cerr << "PosixPreload: Unable to resolve Unix '"
<<epname <<"()'" <<endl;
<<np->What <<"()'" <<endl;
np = np->Next;
}
}
4 changes: 2 additions & 2 deletions src/XrdPosix/XrdPosixXrootd.cc
Expand Up @@ -580,7 +580,7 @@ int XrdPosixXrootd::Open(const char *path, int oflags, mode_t mode,
if (XrdPosixGlobals::myCache2)
{int rc = XrdPosixGlobals::myCache2->Prepare(path, oflags, mode);
if (rc > 0) return OpenDefer(fp, cbP, XOflags, XOmode, oflags&isStream);
if (rc < 0) {errno = -rc; return -1;}
if (rc < 0) {delete fp; errno = -rc; return -1;}
}

// Open the file (sync or async)
Expand Down Expand Up @@ -1200,7 +1200,7 @@ int XrdPosixXrootd::Statvfs(const char *path, struct statvfs *buf)

// Return what little we can
//
memset(buf, 0, sizeof(struct statfs));
memset(buf, 0, sizeof(struct statvfs));
buf->f_bsize = 1024*1024;
buf->f_frsize = 1024*1024;
buf->f_blocks = static_cast<fsblkcnt_t>(rwBlks);
Expand Down

0 comments on commit 1dcbe2b

Please sign in to comment.