Fixed: [state showing error in cli with CLICON_STREAM_DISCOVERY_RFC8040 #191](https://github.com/clicon/clixon/issues/191)

This commit is contained in:
Olof hagsand 2021-03-18 10:41:08 +01:00
parent afdf6ffcf8
commit 43db8dd5c5
12 changed files with 16 additions and 34 deletions

View file

@ -345,7 +345,7 @@ main(int argc, char **argv)
if (h)
clicon_handle_exit(h);
if (yspec)
yspec_free(yspec);
ys_free(yspec);
return retval;
}

View file

@ -155,7 +155,7 @@ main(int argc,
retval = 0;
done:
if (yspec)
yspec_free(yspec);
ys_free(yspec);
if (xt)
xml_free(xt);
if (cb)

View file

@ -286,7 +286,7 @@ main(int argc,
retval = 0;
done:
if (yspec != NULL)
yspec_free(yspec);
ys_free(yspec);
if (cb)
cbuf_free(cb);
if (xvec)

View file

@ -298,7 +298,7 @@ main(int argc, char **argv)
if (reason)
free(reason);
if (yspec)
yspec_free(yspec);
ys_free(yspec);
if (fd > 0)
close(fd);
return retval;

View file

@ -114,7 +114,7 @@ main(int argc, char **argv)
yang_print(stdout, yspec);
done:
if (yspec)
yspec_free(yspec);
ys_free(yspec);
return 0;
}