From: <svn...@op...> - 2010-07-09 19:16:34
|
Author: cdfrey Date: Fri Jul 9 21:16:26 2010 New Revision: 6058 URL: http://www.opensync.org/changeset/6058 Log: Fixed leak of xml data Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Fri Jul 9 21:16:20 2010 (r6057) +++ plugins/google-calendar/src/gcalendar.c Fri Jul 9 21:16:26 2010 (r6058) @@ -600,6 +600,9 @@ return; error: + if (updated_event) + free(updated_event); + osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, msg); osync_trace(TRACE_EXIT, "%s:%sHTTP code: %d", __func__, msg, result); } @@ -708,6 +711,9 @@ return; error: + if (updated_contact) + free(updated_contact); + osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, msg); osync_trace(TRACE_EXIT, "%s:%sHTTP code: %d", __func__, msg, result); } |