commit | b596c71ef452b7d3f48835fe8e6844ab2f1c1b6b | [log] [tgz] |
---|---|---|
author | hasso <hasso> | Fri Jul 09 18:33:43 2004 +0000 |
committer | hasso <hasso> | Fri Jul 09 18:33:43 2004 +0000 |
tree | 77d667f92dee3072dc1f2ce9e69153993e9b1856 | |
parent | 9f9aebdd152bb9ac3f020d21170c53dd0bcec71d [diff] [blame] |
Merge svn revision 855 from Zebra repository.
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index 19ea2c7..71ff362 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c
@@ -1119,6 +1119,10 @@ sendnew = XMALLOC (MTYPE_OSPF6_MESSAGE, size); if (recvnew == NULL || sendnew == NULL) { + if (recvnew) + XFREE (MTYPE_OSPF6_MESSAGE, recvnew); + if (sendnew) + XFREE (MTYPE_OSPF6_MESSAGE, sendnew); zlog_info ("Could not allocate I/O buffer of size %d.", size); return iobuflen; }