ntfs_ie_add(): cleanup (Szaka)

edge.strict_endians
Yura Pakhuchiy 2007-09-05 21:00:16 +03:00
parent aec646eebc
commit 7d6a8f2767
1 changed files with 4 additions and 2 deletions

View File

@ -1406,13 +1406,16 @@ static int ntfs_ib_split(ntfs_index_context *icx, INDEX_BLOCK *ib)
static int ntfs_ie_add(ntfs_index_context *icx, INDEX_ENTRY *ie)
{
char *fn;
INDEX_HEADER *ih;
int allocated_size, new_size;
int ret = STATUS_ERROR;
#ifdef DEBUG
char *fn;
fn = ntfs_ie_filename_get(ie);
ntfs_log_trace("file: '%s'\n", fn);
free(fn);
#endif
while (1) {
if (!ntfs_index_lookup(&ie->key, le16_to_cpu(ie->key_length),
@ -1457,7 +1460,6 @@ static int ntfs_ie_add(ntfs_index_context *icx, INDEX_ENTRY *ie)
ret = STATUS_OK;
err_out:
free(fn);
ntfs_log_trace("%s\n", ret ? "Failed" : "Done");
return ret;
}