diff mbox series

[RFC,v2,4/4] libsepol: free ebitmap on end of function

Message ID 20211124190815.12757-4-cgzones@googlemail.com (mailing list archive)
State Superseded
Headers show
Series [RFC,v2,1/4] libsepol: introduce ebitmap_subtract() | expand

Commit Message

Christian Göttsche Nov. 24, 2021, 7:08 p.m. UTC
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libsepol/src/assertion.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libsepol/src/assertion.c b/libsepol/src/assertion.c
index efa136c8..429e61f5 100644
--- a/libsepol/src/assertion.c
+++ b/libsepol/src/assertion.c
@@ -455,6 +455,7 @@  oom:
 exit:
 	ebitmap_destroy(&src_matches);
 	ebitmap_destroy(&tgt_matches);
+	ebitmap_destroy(&self_matches);
 	ebitmap_destroy(&matches);
 	return ret;
 }