Freed a search context in ntfslabel

Avoids a memory leak detection
edge.strict_endians
Jean-Pierre André 2011-03-23 09:30:51 +01:00
parent 2a2d94897c
commit 0ce2d5bc57
1 changed files with 2 additions and 0 deletions

View File

@ -366,6 +366,8 @@ static int change_label(ntfs_volume *vol, unsigned long mnt_flags, char *label,
result = 0;
err_out:
free(new_label);
if (ctx)
ntfs_attr_put_search_ctx(ctx);
return result;
}