[db] Fix memleak on error from prev commit

This commit is contained in:
ejurgensen 2020-02-08 15:17:34 +01:00
parent 541a1a6701
commit e9d1a2475e

View File

@ -3604,7 +3604,10 @@ db_pl_delete_bypath(const char *path)
ret = db_query_start(&qp);
if (ret < 0)
{
free(qp.filter);
return;
}
while (((ret = db_query_fetch_pl(&qp, &dbpli)) == 0) && (dbpli.id))
{
@ -3615,7 +3618,7 @@ db_pl_delete_bypath(const char *path)
}
db_query_end(&qp);
free_query_params(&qp, 1);
free(qp.filter);
}
void