mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix: memory leak
This commit is contained in:
parent
89a7f15186
commit
a567a17595
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ int node_destroy(struct node *n)
|
|||
if (n->_name)
|
||||
free(n->_name);
|
||||
|
||||
if (n->_name_long)
|
||||
free(n->_name_long);
|
||||
|
||||
n->state = STATE_DESTROYED;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue