Skip to content

Commit

Permalink
[XrdCl] Fix memory leak in xrdfs ls.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 827b07c commit 5ffcda4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdCl/XrdClFS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ XRootDStatus DoLS( FileSystem *fs,

StatInfo *info = 0;
XRootDStatus st = fs->Stat( newPath, info );
std::unique_ptr<StatInfo> ptr( info );
if( !st.IsOK() )
{
log->Error( AppMsg, "Unable to stat the path: %s", st.ToStr().c_str() );
Expand Down

0 comments on commit 5ffcda4

Please sign in to comment.