# HG changeset patch # User Olaf Wintermann # Date 1650915626 -7200 # Node ID f7544e220a0febc596200c7bdab72dfd4047e1ea # Parent e676ed461b5b541a50319f2bcf12e735ad93926f add pg propfind cleanup diff -r e676ed461b5b -r f7544e220a0f src/server/plugins/postgresql/webdav.c --- a/src/server/plugins/postgresql/webdav.c Mon Apr 25 19:28:52 2022 +0200 +++ b/src/server/plugins/postgresql/webdav.c Mon Apr 25 21:40:26 2022 +0200 @@ -380,7 +380,7 @@ return 1; } - char *nodename = PQgetvalue(result, r, 3); + //char *nodename = PQgetvalue(result, r, 3); if(resource_id != current_resource_id) { // create a href string for the new resource // if the resource is a collection, it should have a trailing '/' @@ -463,12 +463,16 @@ } - - return 0; } int pg_dav_propfind_finish(WebdavPropfindRequest *rq) { + PgPropfind *pg = rq->userdata; + pool_handle_t *pool = rq->sn->pool; + PGresult *result = pg->result; + + PQclear(result); + return 0; }