diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-29 21:38:03 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-29 21:38:03 +0100 |
commit | c7974c0f1a7acedd1d5c4d9dff73ae8b42595c56 (patch) | |
tree | bcb051e7e6ac98f193ea6280251ecc9daa0e7e13 /lib/if.c | |
parent | Merge pull request #1680 from donaldsharp/inet_pton (diff) | |
download | frr-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |