diff options
Diffstat (limited to 'src/trg-file-parser.c')
-rw-r--r-- | src/trg-file-parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trg-file-parser.c b/src/trg-file-parser.c index 12f8b29..0a4a8c0 100644 --- a/src/trg-file-parser.c +++ b/src/trg-file-parser.c @@ -124,6 +124,8 @@ trg_torrent_file *trg_parse_torrent_file(const gchar *filename) top_node = be_decoden(g_mapped_file_get_contents(mf), g_mapped_file_get_length(mf)); } + g_mapped_file_unref(mf); + if (!top_node) { return NULL; } else if (be_validate_node(top_node, BE_DICT)) { |