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:
Stephan Aßmus
2008-09-13 14:04:13 +00:00
parent 3ba6733d61
commit ebcba0bec8
+1
View File
@@ -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);