X-Git-Url: http://git.jankratochvil.net/?p=ntfsprogs.git;a=blobdiff_plain;f=libntfs%2Fattrib.c;h=c80ddfaf71c024f9a3902fc4b2beac1db549179b;hp=d8cc6704ea8721d7cf45c11493be116b1e5c4156;hb=6f4ee1073ca27e8b615b844b3ab594fe956ffafb;hpb=f102255550b9570eda41657d1835a27ea43bc01c diff --git a/libntfs/attrib.c b/libntfs/attrib.c index d8cc670..c80ddfa 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -382,8 +382,6 @@ err_out: */ void ntfs_attr_close(ntfs_attr *na) { - if (!na) - return; if (NAttrNonResident(na) && na->rl) free(na->rl); /* Don't release if using an internal constant. */ @@ -2460,6 +2458,9 @@ put_err_out: return -1; } +/** + * ntfs_attr_make_resident - + */ static int ntfs_attr_make_resident(ntfs_attr *na, ntfs_attr_search_ctx *ctx) { // FIXME: For now we cheat and assume there is no attribute list