Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
69cc0372
Commit
69cc0372
authored
Mar 18, 2010
by
Orlando Vazquez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/facepalm - free a pointer AFTER using it
parent
e734d2ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
sqlite3_bindings.cc
sqlite3_bindings.cc
+5
-6
No files found.
sqlite3_bindings.cc
View file @
69cc0372
...
@@ -147,9 +147,9 @@ protected:
...
@@ -147,9 +147,9 @@ protected:
open_req
->
dbo
->
Emit
(
String
::
New
(
"ready"
),
0
,
NULL
);
open_req
->
dbo
->
Emit
(
String
::
New
(
"ready"
),
0
,
NULL
);
open_req
->
cb
.
Dispose
();
open_req
->
cb
.
Dispose
();
free
(
open_req
);
open_req
->
dbo
->
Unref
();
open_req
->
dbo
->
Unref
();
free
(
open_req
);
return
0
;
return
0
;
}
}
...
@@ -238,9 +238,9 @@ protected:
...
@@ -238,9 +238,9 @@ protected:
}
}
close_req
->
cb
.
Dispose
();
close_req
->
cb
.
Dispose
();
free
(
close_req
);
close_req
->
dbo
->
Unref
();
close_req
->
dbo
->
Unref
();
free
(
close_req
);
return
0
;
return
0
;
}
}
...
@@ -355,9 +355,8 @@ protected:
...
@@ -355,9 +355,8 @@ protected:
prep_req
->
cb
.
Dispose
();
prep_req
->
cb
.
Dispose
();
free
(
prep_req
);
prep_req
->
dbo
->
Unref
();
prep_req
->
dbo
->
Unref
();
free
(
prep_req
);
return
0
;
return
0
;
}
}
...
@@ -678,9 +677,9 @@ protected:
...
@@ -678,9 +677,9 @@ protected:
}
}
finalize_req
->
cb
.
Dispose
();
finalize_req
->
cb
.
Dispose
();
free
(
finalize_req
);
finalize_req
->
sto
->
Unref
();
finalize_req
->
sto
->
Unref
();
free
(
finalize_req
);
return
0
;
return
0
;
}
}
...
@@ -811,9 +810,9 @@ protected:
...
@@ -811,9 +810,9 @@ protected:
free
(
step_req
->
column_names
);
free
(
step_req
->
column_names
);
}
}
step_req
->
sto
->
Unref
();
free
(
step_req
);
free
(
step_req
);
step_req
->
sto
->
Unref
();
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment