Commit 25db9578 by Dane Springmeyer

Merge pull request #117 from tomhughes/master

Avoid writing to freed memory
parents 68b22386 5e93d6f2
...@@ -50,7 +50,6 @@ public: ...@@ -50,7 +50,6 @@ public:
assert(handle->data != NULL); assert(handle->data != NULL);
Async* async = static_cast<Async*>(handle->data); Async* async = static_cast<Async*>(handle->data);
delete async; delete async;
handle->data = NULL;
} }
void finish() { void finish() {
......
...@@ -647,7 +647,6 @@ void Statement::CloseCallback(uv_handle_t* handle) { ...@@ -647,7 +647,6 @@ void Statement::CloseCallback(uv_handle_t* handle) {
assert(handle->data != NULL); assert(handle->data != NULL);
Async* async = static_cast<Async*>(handle->data); Async* async = static_cast<Async*>(handle->data);
delete async; delete async;
handle->data = NULL;
} }
void Statement::AsyncEach(uv_async_t* handle, int status) { void Statement::AsyncEach(uv_async_t* handle, int status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment