diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-10-10 07:03:59 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-10-10 07:03:59 (GMT) |
commit | a477a1593bbb534c9815d215909b75c86a6f91b1 (patch) | |
tree | 933ebe334090b3f5df04c2639b5860f1a14f855f /plugins/kaitai/import.c | |
parent | d122453f3ce11f45a63fb870e889f4ce91b34527 (diff) |
Clean output.
Diffstat (limited to 'plugins/kaitai/import.c')
-rw-r--r-- | plugins/kaitai/import.c | 16 |
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); } |