diff --git a/src/delete-caldav-object.c b/src/delete-caldav-object.c index f55eae3..c634e47 100644 --- a/src/delete-caldav-object.c +++ b/src/delete-caldav-object.c @@ -283,6 +283,7 @@ gboolean caldav_delete(caldav_settings* settings, caldav_error* error) { } g_free(url); g_free(lock_token); + g_free(lock_error.str); if (result) { g_free(settings->file); settings->file = NULL; @@ -518,6 +519,7 @@ gboolean caldav_tasks_delete(caldav_settings* settings, caldav_error* error) { } g_free(url); g_free(lock_token); + g_free(lock_error.str); if (result) { g_free(settings->file); settings->file = NULL; diff --git a/src/modify-caldav-object.c b/src/modify-caldav-object.c index 67bdb54..026d317 100644 --- a/src/modify-caldav-object.c +++ b/src/modify-caldav-object.c @@ -284,6 +284,7 @@ gboolean caldav_modify(caldav_settings* settings, caldav_error* error) { } g_free(url); g_free(lock_token); + g_free(lock_error.str); if (result) { g_free(settings->file); settings->file = NULL; @@ -521,6 +522,7 @@ gboolean caldav_tasks_modify(caldav_settings* settings, caldav_error* error) { } g_free(url); g_free(lock_token); + g_free(lock_error.str); if (result) { g_free(settings->file); settings->file = NULL;