Skip to content

Commit 7f783d0

Browse files
committed
No need for early release
1 parent 7739fd3 commit 7f783d0

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

lib/node-db

Submodule node-db updated 2 files

src/result.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,14 @@ node_db_mysql::Result::~Result() {
117117
}
118118

119119
void node_db_mysql::Result::free() throw() {
120-
this->release();
121-
122120
if (this->columns != NULL) {
123121
for (uint16_t i = 0; i < this->totalColumns; i++) {
124122
delete this->columns[i];
125123
}
126124
delete [] this->columns;
127125
}
128-
}
129-
130-
void node_db_mysql::Result::release() throw() {
131126
if (this->result != NULL) {
132127
mysql_free_result(this->result);
133-
this->result = NULL;
134128
}
135129
}
136130

src/result.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class Result : public node_db::Result {
2727

2828
explicit Result(MYSQL* connection) throw(node_db::Exception&);
2929
~Result();
30-
void release() throw();
3130
bool hasNext() const throw();
3231
char** next() throw(node_db::Exception&);
3332
unsigned long* columnLengths() throw(node_db::Exception&);

0 commit comments

Comments
 (0)