summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-01-29 21:38:03 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-01-29 21:38:03 +0100
commitc7974c0f1a7acedd1d5c4d9dff73ae8b42595c56 (patch)
treebcb051e7e6ac98f193ea6280251ecc9daa0e7e13 /lib/if.c
parentMerge pull request #1680 from donaldsharp/inet_pton (diff)
downloadfrr-c7974c0f1a7acedd1d5c4d9dff73ae8b42595c56.tar.xz
frr-c7974c0f1a7acedd1d5c4d9dff73ae8b42595c56.zip
lib: When we shutdown we would leak interface description
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/if.c b/lib/if.c
index fdcd563a5..7866ddb8c 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -210,6 +210,9 @@ void if_delete(struct interface *ifp)
if_link_params_free(ifp);
+ if (ifp->desc)
+ XFREE(MTYPE_TMP, ifp->desc);
+
XFREE(MTYPE_IF, ifp);
}