Skip to content

Commit 2848511

Browse files
committed
Eliminate memory leak for result sets containing LOBs requiring more than one fetch
1 parent 4ef6c07 commit 2848511

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/njsConnection.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ bool njsConnection::ProcessVars(njsBaton *baton, njsVariable *vars,
354354
return false;
355355
}
356356
}
357+
if (var->lobs)
358+
delete [] var->lobs;
357359
var->lobs = new njsProtoILob[numElements];
358360
for (uint32_t row = 0; row < numElements; row++) {
359361
njsProtoILob *lob = &var->lobs[row];

0 commit comments

Comments
 (0)