Changeset: 391dd6c24e82 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=391dd6c24e82
Modified Files:
        gdk/gdk_project.c
Branch: Jun2020
Log Message:

Fix return.


diffs (33 lines):

diff --git a/gdk/gdk_project.c b/gdk/gdk_project.c
--- a/gdk/gdk_project.c
+++ b/gdk/gdk_project.c
@@ -343,7 +343,8 @@ project_str(BAT *restrict l, struct cand
                        oid o = canditer_next(ci);
                        if (o < r1seq || o >= r2end) {
                                GDKerror("does not match always\n");
-                               return GDK_FAIL;
+                               BBPreclaim(bn);
+                               return NULL;
                        }
                        if (o < r1end) {
                                r = r1;
@@ -389,7 +390,8 @@ project_str(BAT *restrict l, struct cand
                        oid o = l->tseqbase + lo;
                        if (o < r1seq || o >= r2end) {
                                GDKerror("does not match always\n");
-                               return GDK_FAIL;
+                               BBPreclaim(bn);
+                               return NULL;
                        }
                        if (o < r1end) {
                                r = r1;
@@ -436,7 +438,8 @@ project_str(BAT *restrict l, struct cand
                        oid o = ot[lo];
                        if (o < r1seq || o >= r2end) {
                                GDKerror("does not match always\n");
-                               return GDK_FAIL;
+                               BBPreclaim(bn);
+                               return NULL;
                        }
                        if (o < r1end) {
                                r = r1;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to