[ORBit2] fix free on error of uninitialized IOR components
- From: Michael Meeks <michael src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ORBit2] fix free on error of uninitialized IOR components
- Date: Thu, 22 Apr 2010 12:55:53 +0000 (UTC)
commit edaf07891ec7e2df72082d2c933a27d504fa8ec9
Author: Michael Meeks <michael meeks novell com>
Date: Thu Apr 22 13:56:49 2010 +0100
fix free on error of uninitialized IOR components
src/orb/orb-core/iop-profiles.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orb/orb-core/iop-profiles.c b/src/orb/orb-core/iop-profiles.c
index 7ff7ca5..3047c74 100644
--- a/src/orb/orb-core/iop-profiles.c
+++ b/src/orb/orb-core/iop-profiles.c
@@ -1485,7 +1485,7 @@ IOP_TAG_GENERIC_IOP_demarshal(IOP_ProfileId p, GIOPRecvBuffer *pbuf,
len = GUINT32_SWAP_LE_BE(len);
buf->cur += 4;
- retval = g_new(IOP_TAG_GENERIC_IOP_info, 1);
+ retval = g_new0(IOP_TAG_GENERIC_IOP_info, 1);
retval->parent.profile_type = IOP_TAG_GENERIC_IOP;
retval->iiop_version = version;
if((buf->cur + len) > buf->end
@@ -1590,7 +1590,7 @@ IOP_TAG_INTERNET_IOP_demarshal(IOP_ProfileId p, GIOPRecvBuffer *pbuf,
len = GUINT32_SWAP_LE_BE(len);
buf->cur += 4;
- retval = g_new(IOP_TAG_INTERNET_IOP_info, 1);
+ retval = g_new0(IOP_TAG_INTERNET_IOP_info, 1);
retval->parent.profile_type = IOP_TAG_INTERNET_IOP;
retval->iiop_version = version;
if((buf->cur + len) > buf->end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]