summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2016-05-25 07:18:01 +0000
committerkrasimir <krasimir@chalmers.se>2016-05-25 07:18:01 +0000
commitb34ee6f377ca69be2f23726ad6b5d24c914e425c (patch)
tree5b3abff6be3aaee23dc3543f71e9f221c6aa515a
parent74e17aef08950d093061c0314a09e850e1591da3 (diff)
fix a warning in libsg
-rw-r--r--src/runtime/c/sg/sg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/c/sg/sg.c b/src/runtime/c/sg/sg.c
index 04db5d67f..ce5748cd2 100644
--- a/src/runtime/c/sg/sg.c
+++ b/src/runtime/c/sg/sg.c
@@ -1841,7 +1841,7 @@ sg_query_triple(SgSG *sg, SgTriple triple, GuExn* err)
rc = open_exprs(sg, 0, false, &tres->ectxt, err);
if (rc != SQLITE_OK)
- goto close1;
+ goto close;
for (int i = 0; i < 3; i++) {
if (gu_variant_is_null(triple[i]))
@@ -1850,7 +1850,7 @@ sg_query_triple(SgSG *sg, SgTriple triple, GuExn* err)
tres->i.mem[i].flags = MEM_Int;
rc = store_expr(sg, &tres->ectxt, triple[i], &tres->i.mem[i].u.i, 0);
if (rc != SQLITE_OK)
- goto close1;
+ goto close;
if (tres->i.mem[i].u.i == 0) {
tres->i.res = 1;
tres->i.tctxt.n_cursors = 0; // this is important since the triples are not initialized yet
@@ -1867,8 +1867,6 @@ sg_query_triple(SgSG *sg, SgTriple triple, GuExn* err)
return tres;
close:
- close_triples(&tres->i.tctxt);
-close1:
close_exprs(&tres->ectxt);
if (sg->autoCommit) {