]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix possible freeing of libyang data 14767/head
authorIgor Ryzhov <iryzhov@nfware.com>
Sat, 11 Nov 2023 00:06:11 +0000 (02:06 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Sat, 11 Nov 2023 00:18:24 +0000 (02:18 +0200)
commit814b9fb7722ffcc5ce8232137400fc717b2d9066
tree6f804e5bc8fbaec05d2d937c71c2eca29f36e779
parent19bcca4f2e9a3ee3c8cc16608dcf303241bbf014
lib: fix possible freeing of libyang data

mgmtd frees all non-NULL change->value variables at the end of every
commit. We shouldn't assign change->value with data returned by libyang
to prevent freeing of library-allocated memory.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/northbound.c