mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-21 19:59:41 +00:00
lib: Free dnode before returning if YANG translator model is already loaded
Seems just a missed one because at `goto error` we release dnode.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit ecf82aa41e
)
This commit is contained in:
parent
21f0622727
commit
14f5d3478f
@ -165,6 +165,7 @@ struct yang_translator *yang_translator_load(const char *path)
|
||||
flog_warn(EC_LIB_YANG_TRANSLATOR_LOAD,
|
||||
"%s: module translator \"%s\" is loaded already",
|
||||
__func__, family);
|
||||
yang_dnode_free(dnode);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user