Merge pull request #11622 from donaldsharp/valgrind_issues

Valgrind issues
This commit is contained in:
Donatas Abraitis 2022-07-17 21:58:48 +03:00 committed by GitHub
commit 77b2c28e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -428,7 +428,7 @@ static void plist_dnode_to_prefix(const struct lyd_node *dnode, bool *any,
static int _plist_is_dup(const struct lyd_node *dnode, void *arg)
{
struct plist_dup_args *pda = arg;
struct prefix p;
struct prefix p = {};
int ge, le;
bool any;

View File

@ -1611,6 +1611,8 @@ void zebra_nhg_free(struct nhg_hash_entry *nhe)
nhe->nhg.nexthop);
}
THREAD_OFF(nhe->timer);
if (nhe->refcnt)
zlog_debug("nhe_id=%pNG hash refcnt=%d", nhe, nhe->refcnt);

View File

@ -4033,6 +4033,7 @@ DEFUN (show_zebra,
vty_out(vty, "%s\n", out);
XFREE(MTYPE_TMP, out);
ttable_del(table);
vty_out(vty,
" Route Route Neighbor LSP LSP\n");
vty_out(vty,