diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-04 12:39:01 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-04 12:39:01 (GMT) |
commit | ade3ee4fd3b78e96deb08210838643969f2f6699 (patch) | |
tree | 09003a6f4ac00c09560de9ea9a91c125a7b14f68 /src/format/format.c | |
parent | a0463dfa8fe232d01ea925668f393d7507fa787b (diff) |
Updated the API for building symbol labels.
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 4 |
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); |