mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 22:51:15 +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>
This commit is contained in:
parent
b9941b3fec
commit
ecf82aa41e
@ -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