summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-10 11:53:26 +0200
committerraveit65 <[email protected]>2020-04-25 18:11:08 +0200
commit3ad9a5d5e71736632ad979557c6f687596d24992 (patch)
treeee6e7ba3463c4417cea7223f839e595d01c232fc
parent9e1d7a89f292590960e5ed065a9689b12d178a7b (diff)
downloadpython-caja-3ad9a5d5e71736632ad979557c6f687596d24992.tar.bz2
python-caja-3ad9a5d5e71736632ad979557c6f687596d24992.tar.xz
caja-python: Fix memory leak reported by scan-build
-rw-r--r--src/caja-python.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/caja-python.c b/src/caja-python.c
index f0aa55c..f28a74c 100644
--- a/src/caja-python.c
+++ b/src/caja-python.c
@@ -172,6 +172,7 @@ caja_python_load_dir (GTypeModule *module,
{
g_warning("caja_python_init_python failed");
g_dir_close(dir);
+ g_free(modulename);
break;
}
@@ -182,6 +183,7 @@ caja_python_load_dir (GTypeModule *module,
Py_DECREF(py_path);
}
caja_python_load_file(module, modulename);
+ g_free(modulename);
}
}
}