summaryrefslogtreecommitdiffstats
path: root/src/delete-carddav-object.c
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-02-16 20:08:11 +0900
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2020-04-06 15:49:00 +0000
commitd0ad6c0960052d1de75d38117d2474ee2d0a4a57 (patch)
tree4b4c690cd1d050fd2cd838debff0a9144996f96c /src/delete-carddav-object.c
parentb3bb3dbd4b7546e4affdb94d2b77735a67da1dcd (diff)
downloadlibcarddav-d0ad6c0960052d1de75d38117d2474ee2d0a4a57.tar.gz
libcarddav-d0ad6c0960052d1de75d38117d2474ee2d0a4a57.zip
Fix memory leak of lock error messages
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'src/delete-carddav-object.c')
-rw-r--r--src/delete-carddav-object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/delete-carddav-object.c b/src/delete-carddav-object.c
index f838c7a..ec5ef5a 100644
--- a/src/delete-carddav-object.c
+++ b/src/delete-carddav-object.c
@@ -265,6 +265,7 @@ gboolean carddav_delete(carddav_settings* settings, carddav_error* error) {
}
g_free(url);
g_free(lock_token);
+ g_free(lock_error.str);
if (result) {
g_free(settings->file);
settings->file = NULL;
@@ -454,6 +455,7 @@ gboolean carddav_delete_by_uri(carddav_settings* settings, carddav_error* error)
}
g_free(url);
g_free(lock_token);
+ g_free(lock_error.str);
if (result) {
g_free(settings->file);
settings->file = NULL;