fix: don't free entry pointer
This commit is contained in:
parent
9cd4eb9905
commit
960596ae3a
@ -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"
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user