diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-07-14 11:01:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-07-14 11:01:17 (GMT) |
commit | de82c8165e61e3c19be184dbc00f66bfc7479c76 (patch) | |
tree | 14a1f60c2c975bd2e8a637098ca5948c3637aed8 /src/analysis/disass | |
parent | 2bd3ea7249d1234204c1b70abac8bc46e221fb95 (diff) |
Updated the code handling binary contents.
Diffstat (limited to 'src/analysis/disass')
-rw-r--r-- | src/analysis/disass/disassembler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/disass/disassembler.c b/src/analysis/disass/disassembler.c index 607f1e4..af67fdf 100644 --- a/src/analysis/disass/disassembler.c +++ b/src/analysis/disass/disassembler.c @@ -389,7 +389,7 @@ void output_disassembly(GLoadedBinary *binary, GProcContext *context, GtkStatusS GBinContent *content; /* Contenu bianire manipulé */ GCodingLanguage *lang; /* Langage de sortie préféré */ char **text; /* Contenu brute à imprimer */ - const char *desc; /* Désignation du binaire */ + char *desc; /* Désignation du binaire */ const gchar *checksum; /* Identifiant de binaire */ GIntroGenerator *generator; /* Générateur constitué */ @@ -420,6 +420,8 @@ void output_disassembly(GLoadedBinary *binary, GProcContext *context, GtkStatusS asprintf(&text[2], "%s%s", _("Source: "), desc); + free(desc); + /* Checksum SHA256 */ checksum = g_binary_content_get_checksum(content); |