fix: don't free entry pointer

This commit is contained in:
ngn 2024-07-31 23:53:22 +03:00
parent 9cd4eb9905
commit 960596ae3a
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-31 21:14+0300\n"
"POT-Creation-Date: 2024-07-31 23:52+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -78,7 +78,7 @@ bool lm_database_entry_find(lm_database_t *db, lm_entry_t *entry, char *name, ch
// package pointer should already be free'd
// we are initing it just in case the caller didn't
if(NULL != entry)
lm_entry_free(entry);
lm_entry_init(entry);
if(sqlite3_prepare(db->entries_db, query, strlen(query), &db->entries_st, NULL) != SQLITE_OK){
pdebug(__func__, "failed to prepare statement for finding %s: %s", name, sqlite3_errmsg(db->entries_db));