[geany/geany-plugins] b5ca57: geanygendoc: Plug a possible memory leak
Colomban Wendling
git-noreply at xxxxx
Sat Nov 2 21:26:54 UTC 2013
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 02 Nov 2013 21:26:54 UTC
Commit: b5ca575c4e5f1a8649768348c3a6752f78c4e629
https://github.com/geany/geany-plugins/commit/b5ca575c4e5f1a8649768348c3a6752f78c4e629
Log Message:
-----------
geanygendoc: Plug a possible memory leak
Modified Paths:
--------------
geanygendoc/src/ggd-doc-type.c
Modified: geanygendoc/src/ggd-doc-type.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -174,12 +174,13 @@
gint *nth_child)
{
GgdDocSetting *setting = NULL;
- gchar *child_match = g_strdup (match);
+ gchar *child_match = NULL;
g_return_val_if_fail (doctype != NULL, NULL);
/*g_debug ("Resolving match \"%s\"...", child_match);*/
if (nth_child) (*nth_child) = 0;
+ child_match = g_strdup (match);
setting = ggd_doc_type_get_setting (doctype, child_match);
while (setting && setting->policy == GGD_POLICY_FORWARD) {
gchar *parent_match = get_parent_match (child_match);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list