Added new patch that fixes the memory leak that was introduced in mkdosfs-dir.patch.
Signed-off-by: Amarnath Valluri <amarnath.vall...@intel.com> --- .../dosfstools/dosfstools-Fix-memroy-leak.patch | 30 ++++++++++++++++++++++ .../recipes-devtools/dosfstools/dosfstools_2.11.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta/recipes-devtools/dosfstools/dosfstools/dosfstools-Fix-memroy-leak.patch diff --git a/meta/recipes-devtools/dosfstools/dosfstools/dosfstools-Fix-memroy-leak.patch b/meta/recipes-devtools/dosfstools/dosfstools/dosfstools-Fix-memroy-leak.patch new file mode 100644 index 0000000..555250f --- /dev/null +++ b/meta/recipes-devtools/dosfstools/dosfstools/dosfstools-Fix-memroy-leak.patch @@ -0,0 +1,30 @@ +From 2c2408d815b7cd76a2edd4261eb051e264993090 Mon Sep 17 00:00:00 2001 +From: Amarnath Valluri <amarnath.vall...@intel.com> +Date: Wed, 5 Aug 2015 16:25:51 +0300 +Subject: [PATCH] dosfstools: Fix memroy leak + +Upstream-Status:[Inappropriate] + +Avoid leaking memory allocated for buffer. + +Signed-off-by: Amarnath Valluri <amarnath.vall...@intel.com> +--- + mkdosfs/mkdosfs.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/mkdosfs/mkdosfs.c b/mkdosfs/mkdosfs.c +index 88b0dc2..2822358 100644 +--- a/mkdosfs/mkdosfs.c ++++ b/mkdosfs/mkdosfs.c +@@ -1693,6 +1693,8 @@ static int add_file(char *filename, struct dir_entry *dir, unsigned char attr) + writebuf(buffer, size, "data"); + } + ++ free(buffer); ++ + exit_add: + if (infile) close(infile); + return 0; +-- +2.1.4 + diff --git a/meta/recipes-devtools/dosfstools/dosfstools_2.11.bb b/meta/recipes-devtools/dosfstools/dosfstools_2.11.bb index beec488..824c04d 100644 --- a/meta/recipes-devtools/dosfstools/dosfstools_2.11.bb +++ b/meta/recipes-devtools/dosfstools/dosfstools_2.11.bb @@ -19,6 +19,7 @@ SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BP}.src.tar.gz/407d4 file://nofat32_autoselect.patch \ file://fix_populated_dosfs_creation.patch \ file://0001-Include-fcntl.h-for-getting-loff_t-definition.patch \ + file://dosfstools-Fix-memroy-leak.patch \ " SRC_URI[md5sum] = "407d405ade410f7597d364ab5dc8c9f6" -- 2.1.4 --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core