diff options
Diffstat (limited to 'src/debug/debugger.c')
| -rw-r--r-- | src/debug/debugger.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/debug/debugger.c b/src/debug/debugger.c index 4a1d314..41feb4b 100644 --- a/src/debug/debugger.c +++ b/src/debug/debugger.c @@ -1034,12 +1034,12 @@ virt_t *g_binary_debugger_get_next_pcs(GBinaryDebugger *debugger, virt_t pc, boo      virt_t *result;                         /* Liste à retourner           */      GArchProcessor *proc;                   /* Processeur lié au binaire   */      vmpa2t addr;                            /* Localisation à cibler       */ -    instr_iter_t *iter;                     /* Parcours local d'adresses   */ +    const instr_iter_t *iter;               /* Parcours local d'adresses   */      GArchInstruction *instr;                /* Instruction correspondante  */      virt_t ret;                             /* Adresse de retour d'appel   */      size_t dcount;                          /* Nombre de liens de dest.    */      size_t i;                               /* Boucle de parcours          */ -    instr_link_t *dest;                     /* Instr. visée par une autre  */ +    const instr_link_t *dest;               /* Instr. visée par une autre  */      const mrange_t *range;                  /* Emplacement d'instruction   */      result = NULL; @@ -1116,6 +1116,8 @@ virt_t *g_binary_debugger_get_next_pcs(GBinaryDebugger *debugger, virt_t pc, boo                  } +                unref_instr_link(dest); +              }              g_arch_instruction_unlock_dest(instr); | 
