summaryrefslogtreecommitdiff
path: root/src/ucm/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ucm/main.c')
-rw-r--r--src/ucm/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ucm/main.c b/src/ucm/main.c
index 2ff4d3f3..98762844 100644
--- a/src/ucm/main.c
+++ b/src/ucm/main.c
@@ -578,6 +578,7 @@ static int execute_sysw(const char *sysw)
if (wlen != (ssize_t)len) {
uc_error("unable to write '%s' to '%s': %s", value, path, strerror(myerrno));
+ free(s);
return -EINVAL;
}