Fix mount memory leakage, Add YANG_FLAG_MOUNTPOINT
This commit is contained in:
parent
81b4fdb274
commit
c46872c3fd
4 changed files with 19 additions and 13 deletions
|
|
@ -83,6 +83,10 @@
|
|||
* leaf z;
|
||||
* }
|
||||
*/
|
||||
#define YANG_FLAG_MOUNTPOINT 0x100 /* Mark node as populated mount-point
|
||||
* Set by yang_mount_set.
|
||||
* Used by ys_free
|
||||
*/
|
||||
|
||||
/*
|
||||
* Types
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ int yang_mount_set(yang_stmt *yu, char *xpath, yang_stmt *yspec);
|
|||
int xml_yang_mount_get(clicon_handle h, cxobj *x, validate_level *vl, yang_stmt **yspec);
|
||||
int xml_yang_mount_set(clicon_handle h, cxobj *x, yang_stmt *yspec);
|
||||
int yang_mount_get_yspec_any(yang_stmt *y, yang_stmt **yspec);
|
||||
int xml_yang_mount_freeall(cvec *cvv);
|
||||
int yang_mount_freeall(cvec *cvv);
|
||||
int yang_schema_mount_statedata(clicon_handle h, yang_stmt *yspec, char *xpath, cvec *nsc, cxobj **xret, cxobj **xerr);
|
||||
int yang_schema_mount_statistics(clicon_handle h, cxobj *xt, int modules, cbuf *cb);
|
||||
int yang_schema_yanglib_parse_mount(clicon_handle h, cxobj *xt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue