mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
themes.cpp fix scandir memleak
This commit is contained in:
@@ -550,7 +550,9 @@ void CThemes::move_userDir()
|
||||
const char *target = ((std::string)THEMESDIR_VAR + "/" + file).c_str();
|
||||
printf("[neutrino theme] moving %s to %s\n", dest, target);
|
||||
rename(dest, target);
|
||||
free(themelist[count]);
|
||||
}
|
||||
free(themelist);
|
||||
}
|
||||
printf("[neutrino theme] removing %s\n", USERDIR);
|
||||
remove(USERDIR);
|
||||
|
Reference in New Issue
Block a user