Change-Id: I63dfd087c6935c5c5d33990964035fb0a3cdd706
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
static int local_chmod(FsContext *fs_ctx, V9fsPath *fs_path, FsCred *credp)
{
TRACE("[%d][ Enter >> %s]\n", __LINE__, __func__);
+ int ret = -1;
#ifndef CONFIG_WIN32
char *buffer;
- int ret = -1;
char *path = fs_path->data;
buffer = rpath(fs_ctx, path);
#else
ret = removexattr(path, name, XATTR_NOFOLLOW);
#endif
+ g_free(buffer);
+ return ret;
#else
return 0;
#endif
- g_free(buffer);
- return ret;
#else
char *buffer;
int ret;