Blame SOURCES/audit-2.8.6-memleak.patch

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