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
parent
67fa6273cf
commit
4d3967840c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue