summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-28 14:03:57 +0200
committerVolker Lendecke <vl@samba.org>2010-03-28 15:25:16 +0200
commit2356c22825de020ebf4ae8cb664fea96dc981749 (patch)
treec0921c1eb29e1caa8c6afa82af98de5bf3d3c3c9 /source3
parent8a43679cea769b3f568def53006690ef23c083c6 (diff)
downloadsamba-2356c22825de020ebf4ae8cb664fea96dc981749.tar.gz
samba-2356c22825de020ebf4ae8cb664fea96dc981749.tar.bz2
samba-2356c22825de020ebf4ae8cb664fea96dc981749.zip
s3: Fix a memleak in bitmap_talloc
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/bitmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 70c21c456a..894395fbc6 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -74,6 +74,7 @@ struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n)
bm->n = n;
bm->b = TALLOC_ZERO_ARRAY(bm, uint32, (n+31)/32);
if (!bm->b) {
+ TALLOC_FREE(bm);
return NULL;
}
return bm;