diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index 6a7d619..3940e9f 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-16 01:04+0300\n" +"POT-Creation-Date: 2024-08-16 03:06+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/ctx/update.c b/src/ctx/update.c index 5e56395..7e8edb2 100644 --- a/src/ctx/update.c +++ b/src/ctx/update.c @@ -32,9 +32,15 @@ lm_ctx_update_list_t *lm_ctx_update_list(lm_ctx_t *ctx){ list->entries = malloc(sizeof(lm_entry_t*)*(++list->count)); else list->entries = realloc(list->entries, sizeof(lm_entry_t*)*(++list->count)); + list->entries[list->count-1] = cur; + cur = malloc(sizeof(lm_entry_t)); + lm_entry_init(cur); } + lm_entry_free(cur); + free(cur); + lm_ctx_database_next_free(ctx, NULL); return list; } @@ -63,8 +69,10 @@ void lm_ctx_update_list_free(lm_ctx_update_list_t *list){ } if(NULL != list->entries){ - for(int i = 0; i < list->count; i++) + for(int i = 0; i < list->count; i++){ lm_entry_free(list->entries[i]); + free(list->entries[i]); + } free(list->entries); }