From 2356c22825de020ebf4ae8cb664fea96dc981749 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 28 Mar 2010 14:03:57 +0200 Subject: s3: Fix a memleak in bitmap_talloc --- source3/lib/bitmap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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; -- cgit