C-API change yang_print: print top-level and add pretty-print parameter
Test: Fix valgrind dlclose suppresion
This commit is contained in:
parent
05372c86fc
commit
e27336e054
8 changed files with 92 additions and 40 deletions
|
|
@ -918,11 +918,11 @@ yang_parse_find_match(clicon_handle h,
|
|||
uint32_t *revactual,
|
||||
cbuf *fbuf)
|
||||
{
|
||||
int retval = -1;
|
||||
cbuf *regex = NULL;
|
||||
cxobj *x;
|
||||
cxobj *xc;
|
||||
char *dir;
|
||||
int retval = -1;
|
||||
cbuf *regex = NULL;
|
||||
cxobj *x;
|
||||
cxobj *xc;
|
||||
char *dir;
|
||||
cvec *cvv = NULL;
|
||||
cg_var *cv = NULL;
|
||||
cg_var *bestcv = NULL;
|
||||
|
|
@ -961,6 +961,8 @@ yang_parse_find_match(clicon_handle h,
|
|||
*/
|
||||
if (ndp != 0){
|
||||
cprintf(fbuf, "%s/%s", dir, dp[ndp-1].d_name);
|
||||
if (dp)
|
||||
free(dp);
|
||||
retval = 1;
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue