Free query in error code path. Fixes CID 927.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27477 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -522,6 +522,7 @@ QueryEntryListCollection::FetchOneQuery(const BQuery *copyThis,
|
|||||||
status_t result = query->Fetch();
|
status_t result = query->Fetch();
|
||||||
if (result != B_OK) {
|
if (result != B_OK) {
|
||||||
PRINT(("fetch error %s\n", strerror(result)));
|
PRINT(("fetch error %s\n", strerror(result)));
|
||||||
|
delete query;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
list->AddItem(query);
|
list->AddItem(query);
|
||||||
|
|||||||
Reference in New Issue
Block a user