diff -r eb48f716b31c -r e10457d74fe1 src/server/plugins/postgresql/webdav.c --- a/src/server/plugins/postgresql/webdav.c Mon Feb 10 17:44:51 2025 +0100 +++ b/src/server/plugins/postgresql/webdav.c Sun Mar 02 18:10:52 2025 +0100 @@ -444,13 +444,13 @@ ext = NULL; numext = 0; } else { - numext = pgdav->repository->prop_ext->size; + numext = cxMapSize(pgdav->repository->prop_ext); ext = pool_calloc(rq->sn->pool, numext, sizeof(PgPropfindExtCol)); if(rq->allprop) { // the map pgdav->repository->prop_ext contains all property extensions // we can just convert the map to an array - CxIterator i = cxMapIteratorValues(pgdav->repository->prop_ext); + CxMapIterator i = cxMapIteratorValues(pgdav->repository->prop_ext); int j = 0; cx_foreach(PgPropertyStoreExt *, cfg_ext, i) { PgPropfindExtCol extcol; @@ -609,7 +609,7 @@ } } - cxMapDestroy(fieldmap); + cxMapFree(fieldmap); } return 0;