Permalink
Browse files

[fix] - fixed memory leak

  • Loading branch information...
Memphiz committed Jun 17, 2011
1 parent 45aa4dc commit a714ff8e84c387d42169e93dcaa655a3a6b29d95
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/filesystem/FileSFTP.cpp
@@ -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;

0 comments on commit a714ff8

Please sign in to comment.