Fixed: [state showing error in cli with CLICON_STREAM_DISCOVERY_RFC8040 #191](https://github.com/clicon/clixon/issues/191)
This commit is contained in:
parent
afdf6ffcf8
commit
43db8dd5c5
12 changed files with 16 additions and 34 deletions
|
|
@ -401,7 +401,7 @@ yang_when_nsc_set(yang_stmt *ys,
|
|||
/* End access functions */
|
||||
|
||||
/*! Create new yang specification
|
||||
* @retval yspec Free with yspec_free()
|
||||
* @retval yspec Free with ys_free()
|
||||
* @retval NULL Error
|
||||
*/
|
||||
yang_stmt *
|
||||
|
|
@ -532,24 +532,6 @@ ys_free(yang_stmt *ys)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*! Free a yang specification recursively
|
||||
*/
|
||||
int
|
||||
yspec_free(yang_stmt *yspec)
|
||||
{
|
||||
int i;
|
||||
yang_stmt *ys;
|
||||
|
||||
for (i=0; i<yspec->ys_len; i++){
|
||||
if ((ys = yspec->ys_stmt[i]) != NULL)
|
||||
ys_free(ys);
|
||||
}
|
||||
if (yspec->ys_stmt)
|
||||
free(yspec->ys_stmt);
|
||||
free(yspec);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*! Allocate larger yang statement vector adding empty field last */
|
||||
static int
|
||||
yn_realloc(yang_stmt *yn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue