evolution-mapi r77 - trunk/src/libexchangemapi



Author: jjohnny
Date: Sat Jan 24 07:19:13 2009
New Revision: 77
URL: http://svn.gnome.org/viewvc/evolution-mapi?rev=77&view=rev

Log:
libexchangemapi : Mem leak fix. Donot allocate for lpProps for GetProps.

Modified:
   trunk/src/libexchangemapi/ChangeLog
   trunk/src/libexchangemapi/exchange-mapi-connection.c

Modified: trunk/src/libexchangemapi/exchange-mapi-connection.c
==============================================================================
--- trunk/src/libexchangemapi/exchange-mapi-connection.c	(original)
+++ trunk/src/libexchangemapi/exchange-mapi-connection.c	Sat Jan 24 07:19:13 2009
@@ -1162,7 +1162,6 @@
 				struct SPropValue *lpProps;
 				uint32_t prop_count = 0, k;
 
-				lpProps = talloc_zero(mem_ctx, struct SPropValue);
 				retval = GetProps (&obj_message, GetPropsTagArray, &lpProps, &prop_count);
 
 				/* Conversion from SPropValue to mapi_SPropValue. (no padding here) */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]