Fix memory leak of lock error messages

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/3/head
OBATA Akio 5 years ago
parent afa497c628
commit e4fca762b0

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