Change-Id: I34d5b3f7f92739bb92acd6706991cbe28549d4f7
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
static const char *libappcore_path;
static struct dentry *libappcore_dentry;
+static void uninit_variables(void)
+{
+ kfree(lpad_path);
+ lpad_path = NULL;
+ lpad_dentry = NULL;
+
+ kfree(libappcore_path);
+ libappcore_path = NULL;
+ libappcore_dentry = NULL;
+}
+
static bool is_init(void)
{
return lpad_dentry && libappcore_dentry;
{
if (stat == NS_ON)
set_stat_off();
+
+ uninit_variables();
}