summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-05 11:43:58 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-05 11:43:58 +0100
commit0722dc5e7e78b815b730635d1d36e1e38ca1dc2e (patch)
tree3962fe5d5566494203471c0034fdc3666d78a46e /src/ntfs_dir.c
parentda22fa1754d20a54d3de749095f58218abc3f19e (diff)
When listing ADS, free the stream name after usage
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 13c3130..18e5185 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -307,6 +307,7 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
{
snprintf(new_file->name, sizeof(new_file->name), "%s:%s", filename, stream_name);
}
+ free(stream_name);
}
else
{