Blame SOURCES/audit-2.8.6-memleak.patch

5c966f
diff --git a/auparse/auparse.c b/auparse/auparse.c
5c966f
index 650db02..fe0feb1 100644
5c966f
--- a/auparse/auparse.c
5c966f
+++ b/auparse/auparse.c
5c966f
@@ -259,15 +259,6 @@ static event_list_t *au_get_ready_event(auparse_state_t *au, int is_test)
5c966f
 	if (lowest && lowest->status == EBS_COMPLETE) {
5c966f
 		lowest->status = EBS_EMPTY;
5c966f
 		au->au_ready--;
5c966f
-		// Try to consolidate the array so that we iterate
5c966f
-		// over a smaller portion next time
5c966f
-		if (lowest == &lol->array[lol->maxi]) {
5c966f
-			au_lolnode *ptr = lowest;
5c966f
-			while (ptr->status == EBS_EMPTY && lol->maxi > 0) {
5c966f
-				lol->maxi--;
5c966f
-				ptr = &lol->array[lol->maxi];
5c966f
-			}
5c966f
-		}
5c966f
 		return lowest->l;
5c966f
 	}
5c966f