aboutsummaryrefslogtreecommitdiff
path: root/squashfs-tools
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2013-01-13 05:45:41 +0000
committerPhillip Lougher <phillip@squashfs.org.uk>2013-01-13 05:46:23 +0000
commitefff889e556c3b3d00a83889f964419f82c0bea9 (patch)
tree04502828fb80a14df1e9ec501711f742b3054894 /squashfs-tools
parenta1d2815af0b5d2044c04ea57cebfcc938f36f880 (diff)
downloadsquashfs-tools-efff889e556c3b3d00a83889f964419f82c0bea9.tar.gz
action: fix memory leak in move_dir()
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'squashfs-tools')
-rw-r--r--squashfs-tools/action.c1
-rw-r--r--squashfs-tools/mksquashfs.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/squashfs-tools/action.c b/squashfs-tools/action.c
index d17d384..9790e31 100644
--- a/squashfs-tools/action.c
+++ b/squashfs-tools/action.c
@@ -1597,6 +1597,7 @@ static void move_dir(struct dir_ent *dir_ent)
struct dir_ent *comp_ent;
/* update our directory's subpath name */
+ free(dir->subpath);
dir->subpath = strdup(subpathname(dir_ent));
/* recursively update the subpaths of any sub-directories */
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index 4100f5e..6fae018 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -5013,7 +5013,7 @@ int parse_num(char *arg, int *res)
#define VERSION() \
- printf("mksquashfs version 4.2-git (2013/01/08)\n");\
+ printf("mksquashfs version 4.2-git (2013/01/12)\n");\
printf("copyright (C) 2013 Phillip Lougher "\
"<phillip@squashfs.org.uk>\n\n"); \
printf("This program is free software; you can redistribute it and/or"\