continue;
}
- if (block->end < UT64_MAX && next_block->start < block->end && next_block->start > block->start) {
+ if (block->end < UT64_MAX && next_block->start < block->end) {
if (next_block->jump == UT64_MAX) {
next_block->jump = block->jump;
}
struct reloc_t **slot = RVecRelocRef_at (threaded_binds, sym_ord);\
if (slot) {\
*slot = reloc;\
+ } else {\
+ free (reloc);\
}\
} else {\
r_skiplist_insert (mo->relocs_cache, reloc);\
if (r_file_exists (file)) {
if (db) {
sdb_reset (db);
- sdb_open (db, file);
+ if (sdb_open (db, file) < 0) {
+ sdb_free (db);
+ db = NULL;
+ }
} else {
db = sdb_new (0, file, 0);
}
} else {
sdb_free (db);
- db = sdb_new0 ();
+ db = NULL;
}
free (file);
}