Skip to content

Commit

Permalink
Correct code for freeing CQN message objects
Browse files Browse the repository at this point in the history
(#96).
  • Loading branch information
anthony-tuininga committed Feb 7, 2019
1 parent c9ad235 commit e0c0c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dpiSubscr.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ static void dpiSubscr__freeMessage(dpiSubscrMessage *message)
query = &message->queries[i];
if (query->numTables > 0) {
for (j = 0; j < query->numTables; j++) {
if (query->tables[i].numRows > 0)
dpiUtils__freeMemory(query->tables[i].rows);
if (query->tables[j].numRows > 0)
dpiUtils__freeMemory(query->tables[j].rows);
}
dpiUtils__freeMemory(query->tables);
}
Expand Down

0 comments on commit e0c0c1c

Please sign in to comment.