Change-Id: I3b3b52f983a14a82e5e188b33cdf1acbec495d24
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
if (!access_label)
return true;
ret = smack_lsetlabel(dst.c_str(), access_label, SMACK_LABEL_ACCESS);
+ free(access_label);
if (ret < 0) {
LOG(ERROR) << "set access label to [" << dst << "] fail";
return false;
if (!exec_label)
return true;
ret = smack_lsetlabel(dst.c_str(), exec_label, SMACK_LABEL_EXEC);
+ free(exec_label);
if (ret < 0) {
LOG(ERROR) << "set exec label to [" << dst << "] fail";
return false;
if (!mmap_label)
return true;
ret = smack_lsetlabel(dst.c_str(), mmap_label, SMACK_LABEL_MMAP);
+ free(mmap_label);
if (ret < 0) {
LOG(ERROR) << "set mmap label to [" << dst << "] fail";
return false;