summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_message.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index da42a2425..d75fc39bb 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -1516,15 +1516,8 @@ int ospf6_iobuf_size(unsigned int size)
void ospf6_message_terminate(void)
{
- if (recvbuf) {
- XFREE(MTYPE_OSPF6_MESSAGE, recvbuf);
- recvbuf = NULL;
- }
-
- if (sendbuf) {
- XFREE(MTYPE_OSPF6_MESSAGE, sendbuf);
- sendbuf = NULL;
- }
+ XFREE(MTYPE_OSPF6_MESSAGE, recvbuf);
+ XFREE(MTYPE_OSPF6_MESSAGE, sendbuf);
iobuflen = 0;
}