mem leaks in netconf hello
This commit is contained in:
parent
9087694b58
commit
1f5e71512a
2 changed files with 6 additions and 2 deletions
|
|
@ -130,9 +130,9 @@ netconf_hello_msg(clicon_handle h,
|
|||
int retval = -1;
|
||||
cvec *nsc = NULL; // namespace context
|
||||
cxobj **vec = NULL;
|
||||
size_t veclen;
|
||||
cxobj *x;
|
||||
cxobj *xcap;
|
||||
size_t veclen;
|
||||
int foundbase;
|
||||
char *body;
|
||||
|
||||
|
|
@ -169,6 +169,8 @@ netconf_hello_msg(clicon_handle h,
|
|||
}
|
||||
retval = 0;
|
||||
done:
|
||||
if (vec)
|
||||
free(vec);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,9 @@ fi
|
|||
|
||||
new "12. Get restconf (running) after restart"
|
||||
pid=$(testrpc status 1)
|
||||
if [ valgrindtest -ne 2 ]; then # XXX does not work w backend valgrind test
|
||||
if [ $? -ne 0 ]; then echo "$pid"; exit -1; fi
|
||||
fi
|
||||
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue