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:
parent
6d613223cc
commit
eb2941ea95
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue