diff options
author | hasso <hasso> | 2004-07-09 18:33:43 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-07-09 18:33:43 +0000 |
commit | 831d2af00ff1f5899a243a1d79cd7724851fc059 (patch) | |
tree | 3298dd2ac6f5e5cd1cf14f9e1e1be33c80cbc086 /ospf6d/ospf6_message.c | |
parent | 27a2e39d5e13ae470b66d42466c66121ae62c28f (diff) | |
download | quagga-831d2af00ff1f5899a243a1d79cd7724851fc059.tar.bz2 quagga-831d2af00ff1f5899a243a1d79cd7724851fc059.tar.xz |
Merge svn revision 855 from Zebra repository.
Diffstat (limited to 'ospf6d/ospf6_message.c')
-rw-r--r-- | ospf6d/ospf6_message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index 19ea2c77..71ff3628 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -1119,6 +1119,10 @@ ospf6_iobuf_size (int size) 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; } |