1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node: pass return value of vt->destroy

This commit is contained in:
Sonja Kolen 2018-07-09 12:55:36 +02:00
parent 6d613223cc
commit eb2941ea95

View file

@ -386,8 +386,12 @@ int node_destroy(struct node *n)
if (ret)
return ret;
if (n->_vt->destroy)
n->_vt->destroy(n);
if (n->_vt->destroy){
ret = (int) n->_vt->destroy(n);
if(ret){
return ret;
}
}
list_remove(&n->_vt->instances, n);