Skip to contentSkip to conversation

Fix string array memory leaks during plugin loading

PATCH In review [email protected] 2 participants 2 messages Oct 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix string array memory leaks during plugin loading

From: Johan Hedberg <[email protected]>

---
 src/plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
src/plugin.c +3 -0
index 68fe318..7c0652b 100644
@@ -176,6 +176,9 @@ int __ofono_plugin_init(const char *pattern, const char *exclude)
 		plugin->active = TRUE;
 	}
 
+	g_strfreev(patterns);
+	g_strfreev(excludes);
+
 	return 0;
 }
 
Signature · 1 line
1.7.1
#1 lore raw

Hi Johan,

Quoted 2 lines
 src/plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

patch has been applied.

Regards

Marcel