aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chcon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chcon.c b/src/chcon.c
index f118820cc..5f13c7d75 100644
--- a/src/chcon.c
+++ b/src/chcon.c
@@ -168,7 +168,10 @@ change_file_context (int fd, char const *file)
}
if (compute_context_from_mask (file_context, &context))
- return 1;
+ {
+ freecon (file_context);
+ return 1;
+ }
context_string = context_str (context);
}