30 lines
835 B
Diff
30 lines
835 B
Diff
From 673b451d38aa323a82da1d94718902bb88c56375 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Filak <jfilak@redhat.com>
|
|
Date: Tue, 7 Aug 2012 11:01:10 +0200
|
|
Subject: [PATCH 03/10] fix leaks in list_possible_events()
|
|
|
|
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
---
|
|
src/lib/run_event.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/lib/run_event.c b/src/lib/run_event.c
|
|
index 6b48568..bc04c5e 100644
|
|
--- a/src/lib/run_event.c
|
|
+++ b/src/lib/run_event.c
|
|
@@ -603,7 +603,11 @@ char *list_possible_events(struct dump_dir *dd, const char *dump_dir_name, const
|
|
pfx, pfx_len /* for events with this prefix */
|
|
);
|
|
if (!cmd)
|
|
+ {
|
|
+ free_rule_list(rule_list);
|
|
+ free(event_name);
|
|
break;
|
|
+ }
|
|
free(cmd);
|
|
|
|
if (event_name)
|
|
--
|
|
1.7.11.2
|
|
|