diff options
Diffstat (limited to 'meta/recipes-support/attr/attr-2.4.44/memory-leak2.patch')
-rw-r--r-- | meta/recipes-support/attr/attr-2.4.44/memory-leak2.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/attr-2.4.44/memory-leak2.patch b/meta/recipes-support/attr/attr-2.4.44/memory-leak2.patch new file mode 100644 index 0000000000..03395423da --- /dev/null +++ b/meta/recipes-support/attr/attr-2.4.44/memory-leak2.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | commit 42f50a130d144ffbc01738f15da9d4f1b57505bd | ||
2 | Author: Kamil Dudka <kdudka@redhat.com> | ||
3 | Date: Thu Jun 3 15:23:04 2010 +0200 | ||
4 | |||
5 | attr_parse_attr_conf: eliminate a memory leak | ||
6 | |||
7 | diff --git a/libattr/attr_copy_action.c b/libattr/attr_copy_action.c | ||
8 | index dc94224..030bbf5 100644 | ||
9 | --- a/libattr/attr_copy_action.c | ||
10 | +++ b/libattr/attr_copy_action.c | ||
11 | @@ -129,6 +129,7 @@ repeat: | ||
12 | |||
13 | t += strcspn(t, "\n"); | ||
14 | } | ||
15 | + free(text); | ||
16 | return 0; | ||
17 | |||
18 | parse_error: | ||