31 lines
887 B
Diff
31 lines
887 B
Diff
From 613ccbdd1011692c6724a11cc8798112dd26d202 Mon Sep 17 00:00:00 2001
|
|
From: Steve Grubb <ausearch.1@gmail.com>
|
|
Date: Tue, 21 May 2024 13:17:38 -0400
|
|
Subject: [PATCH] fix one more leak
|
|
|
|
Conflict:NA
|
|
Reference:https://github.com/linux-audit/audit-userspace/commit/613ccbdd1011692c6724a11cc8798112dd26d202
|
|
|
|
---
|
|
src/ausearch-lol.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ausearch-lol.c b/src/ausearch-lol.c
|
|
index 784c58f6..d156ce42 100644
|
|
--- a/src/ausearch-lol.c
|
|
+++ b/src/ausearch-lol.c
|
|
@@ -371,7 +371,9 @@ int lol_add_record(lol *lo, char *buff)
|
|
l = malloc(sizeof(llist));
|
|
if (l == NULL) {
|
|
free((char *)e.node);
|
|
- fprintf(stderr, "Out of memory. Check %s file, %d line", __FILE__, __LINE__);
|
|
+ free(n.message);
|
|
+ fprintf(stderr, "Out of memory. Check %s file, %d line",
|
|
+ __FILE__, __LINE__);
|
|
return 0;
|
|
}
|
|
list_create(l);
|
|
--
|
|
2.33.0
|
|
|