]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: do not test before XFREE 5842/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 19 Feb 2020 22:06:44 +0000 (17:06 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 19 Feb 2020 22:06:44 +0000 (17:06 -0500)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/routemap_northbound.c

index 68b112b09a7e99b5f1f52efef726c43d3b2e669a..2d04a3d65c3c919a4a2914ed25b0f2fef69087b0 100644 (file)
@@ -243,9 +243,7 @@ static int lib_route_map_entry_description_destroy(enum nb_event event,
                break;
        case NB_EV_APPLY:
                rmi = nb_running_get_entry(dnode, NULL, true);
-               if (rmi->description != NULL)
-                       XFREE(MTYPE_TMP, rmi->description);
-               rmi->description = NULL;
+               XFREE(MTYPE_TMP, rmi->description);
                break;
        }