gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Fix a memory leak scanbuild found.
feature/scanbuild-fixes
2017-10-23, Gary Kramlich
445573c0c362
Parents
0e2e97945285
Children
9cff0fc0d74f
Fix a memory leak scanbuild found.
1 files changed, 3 insertions(+), 0 deletions(-)
+3
-0
python/gplugin-python-loader.c
--- a/python/gplugin-python-loader.c Mon Oct 23 20:48:06 2017 -0500
+++ b/python/gplugin-python-loader.c Mon Oct 23 20:58:18 2017 -0500
@@ -325,6 +325,9 @@
len = mbstowcs(argv[0], program, len + 1);
if(len == (size_t)-1) {
g_warning("Could not convert program name to wchar_t string.");
+
+ g_free(argv[0]);
+
return FALSE;
}