summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index ad676e33..f62b1de6 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -3672,7 +3672,11 @@ _g_ir_parser_parse_file (GIrParser *parser,
*dash = '\0';
if (!g_file_get_contents (filename, &buffer, &length, error))
- return NULL;
+ {
+ g_free (namespace);
+
+ return NULL;
+ }
module = _g_ir_parser_parse_string (parser, namespace, filename, buffer, length, error);