mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +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();
|
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