1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3: Fix the memory hierarchy in bitmap_talloc

This commit is contained in:
Volker Lendecke 2010-03-28 14:02:47 +02:00
parent d77a1fb272
commit ed5a65d7a0

View File

@ -72,7 +72,7 @@ struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n)
if (!bm) return NULL;
bm->n = n;
bm->b = TALLOC_ARRAY(mem_ctx, uint32, (n+31)/32);
bm->b = TALLOC_ARRAY(bm, uint32, (n+31)/32);
if (!bm->b) {
return NULL;
}