add pg propfind cleanup webdav

Mon, 25 Apr 2022 21:40:26 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 25 Apr 2022 21:40:26 +0200
branch
webdav
changeset 312
f7544e220a0f
parent 311
e676ed461b5b
child 313
3ad0b65ec838

add pg propfind cleanup

src/server/plugins/postgresql/webdav.c file | annotate | diff | comparison | revisions
--- 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;
 }
 

mercurial