Skip to content

Commit

Permalink
Fix memory leak on throw
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Jul 27, 2013
1 parent 6a7b6be commit 6c88b4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ void Connection::CreateColumnsFromResultSet(oracle::occi::ResultSet* rs, std::ve
default:
std::ostringstream message;
message << "CreateColumnsFromResultSet: Unhandled oracle data type: " << type;
delete col;
throw NodeOracleException(message.str());
break;
}
Expand Down

0 comments on commit 6c88b4e

Please sign in to comment.