Skip to content
Snippets Groups Projects
Commit 4ca28632 authored by Yury Umanets's avatar Yury Umanets
Browse files

- fixed memory leak in ll_setxattr_internal()

parent b77699e7
No related branches found
No related tags found
No related merge requests found
...@@ -1918,6 +1918,7 @@ int ll_setxattr_internal(struct inode *inode, const char *name, ...@@ -1918,6 +1918,7 @@ int ll_setxattr_internal(struct inode *inode, const char *name,
rc = md_setattr(sbi->ll_md_exp, op_data, &attr, rc = md_setattr(sbi->ll_md_exp, op_data, &attr,
(void *)name, strnlen(name, XATTR_NAME_MAX) + 1, (void *)name, strnlen(name, XATTR_NAME_MAX) + 1,
(void *)value, size, key, key_size, &request); (void *)value, size, key, key_size, &request);
OBD_FREE(op_data, sizeof(*op_data));
if (key && key_size) if (key && key_size)
OBD_FREE(key, key_size); OBD_FREE(key, key_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment