summaryrefslogtreecommitdiff
path: root/src/user-awareness-monitors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user-awareness-monitors.c')
-rw-r--r--src/user-awareness-monitors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user-awareness-monitors.c b/src/user-awareness-monitors.c
index 5a0b317..0377db5 100644
--- a/src/user-awareness-monitors.c
+++ b/src/user-awareness-monitors.c
@@ -688,6 +688,7 @@ int ua_monitor_start_presence_detection(
/* LCOV_EXCL_START */
UA_ERR("Failed with error: %s(0x%X)",
_ua_get_error_string(ret), ret);
+ g_free(service);
return ret;
/* LCOV_EXCL_STOP */
}
@@ -762,6 +763,7 @@ int ua_monitor_start_absence_detection(
/* LCOV_EXCL_START */
UA_ERR("Failed with error: %s(0x%X)",
_ua_get_error_string(ret), ret);
+ g_free(service);
return ret;
/* LCOV_EXCL_STOP */
}