ubus_monitor: workaround possibly false positive uses of memory after it is freed
authorPetr Štetiar <ynezz@true.cz>
Thu, 19 Dec 2019 09:48:57 +0000 (10:48 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 19 Dec 2019 18:53:25 +0000 (19:53 +0100)
commitc60583743ccf105f5d70270b437d2f7636d21193
treebb51dc0306e38b5be30ab1f9d3fad7905bf89dca
parentdac6c7c575ac2f8f04706a137e703deffbf88aa7
ubus_monitor: workaround possibly false positive uses of memory after it is freed

scan-build from clang-9 has reported following:

 libubox/list.h:141:2: warning: Use of memory after it is freed
        _list_add(_new, head, head->next);

Signed-off-by: Petr Štetiar <ynezz@true.cz>
ubusd_monitor.c