summaryrefslogtreecommitdiff
path: root/plugins/kaitai/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kaitai/import.c')
-rw-r--r--plugins/kaitai/import.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/kaitai/import.c b/plugins/kaitai/import.c
index 516a091..0412ff7 100644
--- a/plugins/kaitai/import.c
+++ b/plugins/kaitai/import.c
@@ -130,13 +130,10 @@ static GKaitaiType *import_kaitai_definition_from_env(const char *target)
result = g_kaitai_type_new_as_import(target, filename);
- free(filename);
-
if (result != NULL)
- {
- log_variadic_message(LMT_PROCESS, _("Found a required Kaitai definition: %s"), filename);
- break;
- }
+ log_variadic_message(LMT_PROCESS, _("Found a required Kaitai definition to import: %s"), filename);
+
+ free(filename);
}
@@ -259,13 +256,10 @@ static GKaitaiStruct *load_kaitai_definition_from_env(const char *target)
result = g_kaitai_structure_new_from_file(filename);
- free(filename);
-
if (result != NULL)
- {
log_variadic_message(LMT_PROCESS, _("Found a required Kaitai definition: %s"), filename);
- break;
- }
+
+ free(filename);
}