Commit 8534053
context: correct memory leak of
`data_load()` returns a reference to `struct ly_in *` which
must be free'd by `lys_in_free()`. This is done in one of three
locations. This corrects this oversight.
This was found during unit tests of SONiC during porting to
libyang3 from libyang 1.0.73.
Signed-off-by: Brad House <[email protected]>struct ly_in * objects1 parent aea34d1 commit 8534053
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| 494 | + | |
492 | 495 | | |
493 | 496 | | |
494 | 497 | | |
| |||
0 commit comments