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:
William Casarin authored and Daniel D’Aquino committed 2025-08-11 16:40:00 -07:00
1 parent a562be009d
commit ffc50bb2c1
1 file changed
+3 -3
+3 -3
View File
@@ -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;