Changeset: c680090faf53 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c680090faf53
Modified Files:
        geom/monetdb5/geom_atoms.c
Branch: Dec2025
Log Message:

Fix for previous changeset.


diffs (27 lines):

diff --git a/geom/monetdb5/geom_atoms.c b/geom/monetdb5/geom_atoms.c
--- a/geom/monetdb5/geom_atoms.c
+++ b/geom/monetdb5/geom_atoms.c
@@ -198,8 +198,9 @@ wkbREAD(allocator *ma, void *A, size_t *
                        GDKfree(a);
                return NULL;
        }
-       if (ma == NULL && a != (wkb *) A) {
-               GDKfree(A);
+       if (a != (wkb *) A) {
+               if (ma == NULL)
+                       GDKfree(A);
                *dstlen = wkblen;
        }
        return a;
@@ -579,8 +580,9 @@ mbrREAD(allocator *ma, void *A, size_t *
                c->xmax = vals[2];
                c->ymax = vals[3];
        }
-       if (ma == NULL && a != (mbr *) A) {
-               GDKfree(A);
+       if (a != (mbr *) A) {
+               if (ma == NULL)
+                       GDKfree(A);
                *dstlen = cnt * sizeof(mbr);
        }
        return a;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to