SNMP Frontend, fix handling of snmpd down and memory leaks

If snmpd is down, clixon_snmp does not start
If snmpd stops, clixon_snmp quits
Mem leaks fixed
This commit is contained in:
Olof hagsand 2022-06-05 15:30:55 +02:00
parent a3d0b74e4b
commit ef640772df
7 changed files with 269 additions and 108 deletions

View file

@ -340,6 +340,8 @@ snmp_scalar_set(clicon_handle h,
ok:
retval = 0;
done:
if (api_path)
free(api_path);
if (cb)
cbuf_free(cb);
if (xtop)