summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/attr-2.4.44/double-free.patch
blob: 6fc684f6c2e2adcc5663882248917ba8f19ad303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
commit 5b28eb3b0e0430ce6af28edc9100ca23299d1218
Author: Kamil Dudka <kdudka@redhat.com>
Date:   Thu Jun 3 15:29:54 2010 +0200

    attr_parse_attr_conf: eliminate a double free

diff --git a/libattr/attr_copy_action.c b/libattr/attr_copy_action.c
index 030bbf5..2697328 100644
--- a/libattr/attr_copy_action.c
+++ b/libattr/attr_copy_action.c
@@ -81,6 +81,7 @@ repeat:
 		fclose(file);
 		file = NULL;
 		free(text);
+		text = NULL;
 		size_guess *= 2;
 		goto repeat;
 	}