Skip to content

Commit ba6069f

Browse files
committed
Fix leak introduced in 1.10 with REF CURSORs
1 parent de09daa commit ba6069f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/njs/src/njsConnection.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,13 @@ typedef struct eBaton
267267
{
268268
for( unsigned int index = 0 ;index < extBinds.size(); index++ )
269269
{
270-
if ( extBinds[ index ] != NULL )
270+
if ( extBinds[index] )
271271
{
272-
delete extBinds[ index ];
272+
if ( extBinds[index]->mInfo )
273+
{
274+
delete [] extBinds[index]->mInfo;
275+
}
276+
delete extBinds[index];
273277
}
274278
}
275279
extBinds.clear ();

0 commit comments

Comments
 (0)