Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] - fixed memory leak

  • Loading branch information...
commit a714ff8e84c387d42169e93dcaa655a3a6b29d95 1 parent 45aa4dc
Memphiz Memphiz authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/filesystem/FileSFTP.cpp
5 xbmc/filesystem/FileSFTP.cpp
View
@@ -118,7 +118,12 @@ bool CSFTPSession::GetDirectory(const CStdString &base, const CStdString &folder
}
if (attributes && (attributes->name == NULL || strcmp(attributes->name, "..") == 0 || strcmp(attributes->name, ".") == 0))
+ {
+ CSingleLock lock(m_critSect);
+ sftp_attributes_free(attributes);
continue;
+ }
+
if (attributes)
{
CStdString itemName = attributes->name;
Please sign in to comment.
Something went wrong with that request. Please try again.