aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--binding/task-manager-binding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binding/task-manager-binding.c b/binding/task-manager-binding.c
index 2780f84..5a2bc78 100644
--- a/binding/task-manager-binding.c
+++ b/binding/task-manager-binding.c
@@ -147,6 +147,7 @@ void get_extra_info(struct afb_req request)
if (fsched == NULL) {
afb_req_fail(request, "Failed", "Error processing arguments.");
+ return;
}
else {
json_object_object_add(json_obj, "tid", json_object_new_int(tid));
@@ -187,6 +188,7 @@ void get_load_avg(struct afb_req request)
if (floadAvg == NULL) {
afb_req_fail(request, "Failed", "Error processing arguments.");
+ return;
}
else {
fscanf(floadAvg, "%4f%4*f%4*f", &value);