diff options
author | 2020-01-02 11:03:34 -0500 | |
---|---|---|
committer | 2020-01-02 16:05:19 -0500 | |
commit | 6fc654713a65a0e72ee592fbd5e177702e33fbca (patch) | |
tree | 93fe30f9a8c59f3e09c457237c9a0f1ffcade400 /src/plugins/capabilities/guimetadata | |
parent | bad0a516cd461f5a5385da841858504b67ee5832 (diff) |
Fix event JSON reference count issueshalibut_8.0.6halibut_8.0.5halibut/8.0.6halibut/8.0.58.0.68.0.5halibut
It was noticed that vshl-capabilities was triggering the reference count
check in json-c and asserting:
../json-c-0.13.1/json_object.c:189: json_object_put: Assertion `jso->_ref_count > 0' failed.
Initially, this was only seen once during ad hoc testing, but
investigation into using the capabilities events started triggering it
reproducibly. The root cause seems to be the capabilities binding
reusing the json-c objects it receives from voiceagent events to send
out itself. That results in the objects getting json_object_put called
on them a second time by the app framework when they're resent. To fix
this, call json_object_put on the reused objects to keep their reference
count correct and avoid triggering the assert.
Bug-AGL: SPEC-3053
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I533bf492e740509cebd8d3487c9658e175fe73f9
Diffstat (limited to 'src/plugins/capabilities/guimetadata')
0 files changed, 0 insertions, 0 deletions