memleak
This commit is contained in:
parent
03acf8e19c
commit
0895ac7b0d
2 changed files with 3 additions and 1 deletions
|
|
@ -737,6 +737,8 @@ text_modify(clicon_handle h,
|
||||||
} /* else Y_CONTAINER */
|
} /* else Y_CONTAINER */
|
||||||
retval = 1;
|
retval = 1;
|
||||||
done:
|
done:
|
||||||
|
if (nscx1)
|
||||||
|
xml_nsctx_free(nscx1);
|
||||||
/* Remove dangling added objects */
|
/* Remove dangling added objects */
|
||||||
if (changed && x0 && xml_parent(x0)==NULL)
|
if (changed && x0 && xml_parent(x0)==NULL)
|
||||||
xml_purge(x0);
|
xml_purge(x0);
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ xml_nsctx_node1(cxobj *xn,
|
||||||
* xml_nsctx_free(nsc)
|
* xml_nsctx_free(nsc)
|
||||||
* @endcode
|
* @endcode
|
||||||
* @see xml_nsctx_init
|
* @see xml_nsctx_init
|
||||||
* @see xml_nsctx_free Free the reutned handle
|
* @see xml_nsctx_free Free the returned handle
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
xml_nsctx_node(cxobj *xn,
|
xml_nsctx_node(cxobj *xn,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue