mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-27 01:26:07 +00:00
Bypass (comment) valgrind issue
This commit is contained in:
parent
e7783173c7
commit
9565830426
@ -369,8 +369,8 @@ static void r_bin_file_free (RBinFile *a) {
|
||||
r_buf_free (a->buf);
|
||||
|
||||
free (a->file);
|
||||
memset (a, 0, sizeof(RBinFile));
|
||||
free (a);
|
||||
memset (a, 0, sizeof (RBinFile));
|
||||
//free (a);
|
||||
|
||||
//bin->cur = r_list_get_n (bin->binfiles, 0);
|
||||
//if (bin->cur) r_bin_bind (bin, bin->cur);
|
||||
|
@ -486,7 +486,7 @@ static int bin_relocs (RCore *r, int mode, ut64 baddr, int va) {
|
||||
r_list_foreach (relocs, iter, reloc) {
|
||||
r_cons_printf ("addr=0x%08"PFMT64x" off=0x%08"PFMT64x" type=%s",
|
||||
baddr+reloc->rva, reloc->offset, bin_reloc_type_name (reloc));
|
||||
if (reloc->import)
|
||||
if (reloc->import && reloc->import->name)
|
||||
r_cons_printf (" %s", reloc->import->name);
|
||||
if (reloc->addend) {
|
||||
if (reloc->import && reloc->addend > 0)
|
||||
|
@ -30,8 +30,8 @@ rep:
|
||||
s->f = ++s->t;
|
||||
if (s->p[s->t] == stop)
|
||||
s->f = ++s->t;
|
||||
if (!s->p[s->t])
|
||||
return 0;
|
||||
if (!s->p[s->t])
|
||||
return 0;
|
||||
while (s->p[s->t] != stop) {
|
||||
if (!s->p[s->t]) {
|
||||
s->next = 0;
|
||||
|
@ -249,7 +249,10 @@ SDB_VISIBLE int sdb_adel(Sdb *s, const char *key, int idx, ut32 cas) {
|
||||
for (i = 0; i<idx; i++) {
|
||||
n = strchr (p, SDB_RS);
|
||||
if (n) p = n+1;
|
||||
else return 0;;
|
||||
else {
|
||||
free (str);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
n = strchr (p, SDB_RS);
|
||||
if (n) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user