Bypass (comment) valgrind issue

This commit is contained in:
pancake 2014-01-12 02:21:38 +01:00
parent e7783173c7
commit 9565830426
4 changed files with 9 additions and 6 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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;

View File

@ -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) {