diff options
author | Tobias Markus <tobbi.bugs@googlemail.com> | 2015-05-12 22:10:54 +0200 |
---|---|---|
committer | Tobias Markus <tobbi.bugs@googlemail.com> | 2015-05-12 22:10:54 +0200 |
commit | d296a891b19ec54d59938da060d181d6b79272cd (patch) | |
tree | 88e9ab7929fe55eaeb189fca45e3a3c65340cb89 | |
parent | e2793a3e1979d4ae8619ac95520ae0bfbb3a25cc (diff) |
Fix coverity #719001
-rw-r--r-- | xbmc/filesystem/iso9660.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/filesystem/iso9660.cpp b/xbmc/filesystem/iso9660.cpp index 2b271e74fe..981d5bc966 100644 --- a/xbmc/filesystem/iso9660.cpp +++ b/xbmc/filesystem/iso9660.cpp @@ -388,7 +388,10 @@ struct iso_dirtree *iso9660::ReadRecursiveDirFromSector( DWORD sector, const cha pFile_Pointer->path = (char *)malloc(strlen(path) + 1); if (!pFile_Pointer->path) + { + free(pCurr_dir_cache); return NULL; + } strcpy( pFile_Pointer->path, path ); pFile_Pointer->name = (char *)malloc( temp_text.length() + 1); |