nostrdb: fix realloc corruption
can't figure out why this is happening, but let's disable it for now while we test. we shouldn't hit this code path anyways once we switch over to local notes in damus ios Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
a562be009d
commit
ffc50bb2c1
@@ -5841,9 +5841,9 @@ static struct ndb_blocks *ndb_note_to_blocks(struct ndb_note *note)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
blocks = realloc(blocks, ndb_blocks_total_size(blocks));
|
||||
if (blocks == NULL)
|
||||
return NULL;
|
||||
//blocks = realloc(blocks, ndb_blocks_total_size(blocks));
|
||||
//if (blocks == NULL)
|
||||
//return NULL;
|
||||
|
||||
blocks->flags |= NDB_BLOCK_FLAG_OWNED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user