Merge pull request #13093 from manojvn/ospf_mem_leaks

ospfd: Fix for memory leak issue in ospf related to flood_reduction tests.
This commit is contained in:
Donald Sharp 2023-03-24 10:23:18 -04:00 committed by GitHub
commit d54d0ead76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4099,11 +4099,11 @@ void ospf_lsa_refresh_walker(struct thread *t)
dna_lsa = ospf_check_dna_lsa(lsa);
if (!dna_lsa) { /* refresh only non-DNA LSAs */
ospf_lsa_refresh(ospf, lsa);
assert(lsa->lock > 0);
ospf_lsa_unlock(&lsa); /* lsa_refresh_queue & temp for
* lsa_to_refresh.
*/
}
assert(lsa->lock > 0);
ospf_lsa_unlock(&lsa); /* lsa_refresh_queue & temp for
* lsa_to_refresh.
*/
}
list_delete(&lsa_to_refresh);