Fixed a memory leak caused by disabling getting/setting DOS names

After rejecting a DOS name setting on a hardlinked file, the search
context has to be freed.
edge.strict_endians
Jean-Pierre André 2012-10-05 10:35:59 +02:00
parent 67fa6273cf
commit 4d3967840c
1 changed files with 1 additions and 0 deletions

View File

@ -2368,6 +2368,7 @@ static int get_long_name(ntfs_inode *ni, u64 dnum, ntfschar *longname)
}
}
if (namecount > 1) {
ntfs_attr_put_search_ctx(ctx);
errno = EMLINK;
return -1;
}