Fix memory leek in error code path ntfs_attr_open(). Thanks to Christophe Grenier who used Valgrind to find it.

(Logical change 1.272)
edge.strict_endians
cantab.net!aia21 2004-01-22 23:53:36 +00:00
parent cba63740ae
commit e14583bed7
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ ntfs_attr *ntfs_attr_open(ntfs_inode *ni, const ATTR_TYPES type,
put_err_out:
ntfs_attr_put_search_ctx(ctx);
err_out:
free(na);
errno = err;
return NULL;
}