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