summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-05-06 14:34:15 +0900
committerOBATA Akio <obache@wizdas.com>2020-05-06 14:34:15 +0900
commite4fca762b010f5a9367134d00070daf835e68762 (patch)
treeba01ee9d0709849750e67861ffcdb0c1d5898cd5
parentafa497c628eb6a8a96f234db5215d5c4cc0489af (diff)
downloadlibcaldav-e4fca762b010f5a9367134d00070daf835e68762.tar.gz
libcaldav-e4fca762b010f5a9367134d00070daf835e68762.zip
Fix memory leak of lock error messages
Signed-off-by: OBATA Akio <obache@wizdas.com>
-rw-r--r--src/delete-caldav-object.c2
-rw-r--r--src/modify-caldav-object.c2
2 files changed, 4 insertions, 0 deletions
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;