Freed a search context in ntfslabel
Avoids a memory leak detectionedge.strict_endians
parent
2a2d94897c
commit
0ce2d5bc57
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue