mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
themes.cpp fix scandir memleak
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab396978a6
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-04 (Sat, 04 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -552,7 +552,9 @@ void CThemes::move_userDir()
|
|||||||
const char *target = ((std::string)THEMESDIR_VAR + "/" + file).c_str();
|
const char *target = ((std::string)THEMESDIR_VAR + "/" + file).c_str();
|
||||||
printf("[neutrino theme] moving %s to %s\n", dest, target);
|
printf("[neutrino theme] moving %s to %s\n", dest, target);
|
||||||
rename(dest, target);
|
rename(dest, target);
|
||||||
|
free(themelist[count]);
|
||||||
}
|
}
|
||||||
|
free(themelist);
|
||||||
}
|
}
|
||||||
printf("[neutrino theme] removing %s\n", USERDIR);
|
printf("[neutrino theme] removing %s\n", USERDIR);
|
||||||
remove(USERDIR);
|
remove(USERDIR);
|
||||||
|
Reference in New Issue
Block a user