summaryrefslogtreecommitdiff
path: root/src/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysctl.c')
-rw-r--r--src/sysctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysctl.c b/src/sysctl.c
index 38ea2d18b..a8a9422ac 100644
--- a/src/sysctl.c
+++ b/src/sysctl.c
@@ -43,6 +43,7 @@ static void apply_sysctl(const char *property, const char *value) {
if (!(p = new(char, sizeof(PROC_SYS_PREFIX) + strlen(property)))) {
log_error("Out of memory");
exit_code = -ENOMEM;
+ return;
}
n = stpcpy(p, PROC_SYS_PREFIX);