memleak
This commit is contained in:
parent
835f9030d2
commit
1defd2afc7
2 changed files with 1 additions and 5 deletions
|
|
@ -8,13 +8,11 @@
|
||||||
* State callbacks provided by user are validated. If they are invalid an internal error is returned.
|
* State callbacks provided by user are validated. If they are invalid an internal error is returned.
|
||||||
* Fixed multi-namespace for augmented state which was not covered in 4.2.0.
|
* Fixed multi-namespace for augmented state which was not covered in 4.2.0.
|
||||||
|
|
||||||
|
|
||||||
### API changes on existing features (you may need to change your code)
|
### API changes on existing features (you may need to change your code)
|
||||||
* The multi-namespace augment state may rearrange the XML namespace attributes.
|
* The multi-namespace augment state may rearrange the XML namespace attributes.
|
||||||
* Main example yang changed to incorporate augmented state, new revision is 2019-11-15.
|
* Main example yang changed to incorporate augmented state, new revision is 2019-11-15.
|
||||||
|
|
||||||
### Corrected Bugs
|
### Corrected Bugs
|
||||||
|
|
||||||
* Mandatory variables can no longer be deleted.
|
* Mandatory variables can no longer be deleted.
|
||||||
* [Add missing includes](https://github.com/clicon/clixon/pulls)
|
* [Add missing includes](https://github.com/clicon/clixon/pulls)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2243,12 +2243,10 @@ xml_default(cxobj *xt,
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
else{ /* namespace does not exist in target, use source prefix */
|
else{ /* namespace does not exist in target, use source prefix */
|
||||||
char *prefix1 = NULL;
|
if ((prefix = yang_find_myprefix(y)) == NULL){
|
||||||
if ((prefix1 = strdup(yang_find_myprefix(y))) == NULL){
|
|
||||||
clicon_err(OE_UNIX, errno, "strdup");
|
clicon_err(OE_UNIX, errno, "strdup");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (add_namespace(xc, xt, prefix1, namespace) < 0)
|
if (add_namespace(xc, xt, prefix1, namespace) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue