[GB.DB]
* BUG: Fix a memory leak in blob handling when using a PostgreSQL database. git-svn-id: svn://localhost/gambas/trunk@7841 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
676d06b0d7
commit
86fe572568
@ -848,8 +848,10 @@ static CBLOB *make_blob(CRESULT *result, int field)
|
||||
|
||||
if (result->handle && result->pos >= 0)
|
||||
{
|
||||
BLOB->constant = FALSE;
|
||||
result->driver->Result.Blob(result->handle, result->pos, field, BLOB);
|
||||
set_blob(BLOB, BLOB->data, BLOB->length);
|
||||
if (BLOB->constant)
|
||||
set_blob(BLOB, BLOB->data, BLOB->length);
|
||||
}
|
||||
|
||||
//fprintf(stderr, "make_blob: [%d] %d (%d) -> %p\n", result->pos, field, BLOB->length, BLOB);
|
||||
|
Loading…
x
Reference in New Issue
Block a user