Changes by: uvman
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357:/tmp/cvs-serv11158/libntfs
Modified Files:
attrib.c
Log Message:
Fix memleak. Remove dead code.
Index: attrib.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/attrib.c,v
retrieving revision 1.229
retrieving revision 1.230
diff -u -p -r1.229 -r1.230
--- attrib.c 28 Oct 2006 23:06:49 -0000 1.229
+++ attrib.c 28 Oct 2006 23:08:24 -0000 1.230
@@ -78,8 +78,6 @@ s64 ntfs_get_attribute_value_length(cons
return sle64_to_cpu(a->data_size);
else
return (s64)le32_to_cpu(a->value_length);
- errno = EINVAL;
- return 0;
}
/**
@@ -254,6 +252,7 @@ s64 ntfs_get_attribute_value(const ntfs_
errno = EIO;
}
#undef ESTR
+ free(rl);
return 0;
}
total += r;
|