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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue