Fix memory leak of lock error messages

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit e4fca762b0)
r14.0.x
OBATA Akio 5 years ago committed by Slávek Banko
parent 1f3cbf0375
commit acd4feeca0
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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;

@ -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;

Loading…
Cancel
Save