diff options
author | OBATA Akio <obache@wizdas.com> | 2020-02-16 20:08:11 +0900 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2020-04-06 15:49:00 +0000 |
commit | d0ad6c0960052d1de75d38117d2474ee2d0a4a57 (patch) | |
tree | 4b4c690cd1d050fd2cd838debff0a9144996f96c | |
parent | b3bb3dbd4b7546e4affdb94d2b77735a67da1dcd (diff) | |
download | libcarddav-d0ad6c0960052d1de75d38117d2474ee2d0a4a57.tar.gz libcarddav-d0ad6c0960052d1de75d38117d2474ee2d0a4a57.zip |
Fix memory leak of lock error messages
Signed-off-by: OBATA Akio <obache@wizdas.com>
-rw-r--r-- | src/delete-carddav-object.c | 2 | ||||
-rw-r--r-- | src/modify-carddav-object.c | 2 |
2 files changed, 4 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; diff --git a/src/modify-carddav-object.c b/src/modify-carddav-object.c index a6a9c84..81d4602 100644 --- a/src/modify-carddav-object.c +++ b/src/modify-carddav-object.c @@ -266,6 +266,7 @@ gboolean carddav_modify(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; @@ -460,6 +461,7 @@ gboolean carddav_modify_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; |