summaryrefslogtreecommitdiff
path: root/src/format/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/format.c')
-rw-r--r--src/format/format.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/format/format.c b/src/format/format.c
index fa11663..439bd3e 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -961,7 +961,7 @@ bool g_binary_format_find_symbol_by_label(GBinFormat *format, const char *label,
{
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
- const char *cur_lbl; /* Etiquette courante */
+ char *cur_lbl; /* Etiquette courante */
result = false;
@@ -981,6 +981,8 @@ bool g_binary_format_find_symbol_by_label(GBinFormat *format, const char *label,
}
+ free(cur_lbl);
+
}
g_binary_format_unlock_symbols_rd(format);