rest memleak
This commit is contained in:
parent
91f91fe526
commit
e06ac2e3d2
2 changed files with 1 additions and 4 deletions
|
|
@ -336,7 +336,6 @@ api_data_post(clicon_handle h,
|
||||||
if (xml_addsub(xbot, x) < 0)
|
if (xml_addsub(xbot, x) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
xdata = NULL;
|
|
||||||
if ((cbx = cbuf_new()) == NULL)
|
if ((cbx = cbuf_new()) == NULL)
|
||||||
goto done;
|
goto done;
|
||||||
if (clicon_xml2cbuf(cbx, xtop, 0, 0) < 0)
|
if (clicon_xml2cbuf(cbx, xtop, 0, 0) < 0)
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,6 @@ expectfn 'curl -sS -X DELETE http://localhost/restconf/data/interfaces' ""
|
||||||
new "Check empty config"
|
new "Check empty config"
|
||||||
expectfn "curl -sSG http://localhost/restconf/data" "^null
$"
|
expectfn "curl -sSG http://localhost/restconf/data" "^null
$"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
new "Add interfaces subtree eth/0/0 using POST"
|
new "Add interfaces subtree eth/0/0 using POST"
|
||||||
expectfn 'curl -sS -X POST -d {"interface":{"name":"eth/0/0","type":"eth","enabled":"true"}} http://localhost/restconf/data/interfaces' ""
|
expectfn 'curl -sS -X POST -d {"interface":{"name":"eth/0/0","type":"eth","enabled":"true"}} http://localhost/restconf/data/interfaces' ""
|
||||||
|
|
||||||
|
|
@ -85,7 +83,7 @@ expectfn "curl -sS -G http://localhost/restconf/data" '{"interfaces": {"interfac
|
||||||
$'
|
$'
|
||||||
|
|
||||||
new "Kill restconf daemon"
|
new "Kill restconf daemon"
|
||||||
#sudo pkill -u www-data clixon_restconf
|
sudo pkill -u www-data clixon_restconf
|
||||||
|
|
||||||
new "Kill backend"
|
new "Kill backend"
|
||||||
# Check if still alive
|
# Check if still alive
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue