diff options
author | Дилян Палаузов <git-dpa@aegee.org> | 2022-11-01 15:42:27 +0200 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-11-01 11:28:07 -0400 |
commit | 997a3f18c22b4a78155c6c5c109e6ff15e8899fb (patch) | |
tree | 0d3965a814fc48b9f69ccd597552a482e97920d3 /src/libical-glib | |
parent | 3267a80eb14093b23c4b089799c31646f2053ea6 (diff) | |
download | libical-git-997a3f18c22b4a78155c6c5c109e6ff15e8899fb.tar.gz |
libical-glib/tools/generator.c: memory leak
Diffstat (limited to 'src/libical-glib')
-rw-r--r-- | src/libical-glib/tools/generator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libical-glib/tools/generator.c b/src/libical-glib/tools/generator.c index d1d3fc23..1e6ce406 100644 --- a/src/libical-glib/tools/generator.c +++ b/src/libical-glib/tools/generator.c @@ -2238,6 +2238,7 @@ static gint generate_library(const gchar *apis_dir) printf("The node cannot be parsed into a structure.\n"); xmlFreeDoc(doc); res = 1; + structure_free(structure); goto out; } @@ -2259,6 +2260,7 @@ static gint generate_library(const gchar *apis_dir) structure->name); xmlFreeDoc(doc); res = 1; + structure_free(structure); goto out; } } @@ -2277,6 +2279,7 @@ static gint generate_library(const gchar *apis_dir) printf("Please supply a default value for enum %s\n", enumeration->name); xmlFreeDoc(doc); res = 1; + structure_free(structure); goto out; } } |