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:
parent
d77a1fb272
commit
ed5a65d7a0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user