some fixes

Sat, 17 Aug 2013 14:34:15 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 17 Aug 2013 14:34:15 +0200
changeset 19
18efd2c2973d
parent 18
651989681053
child 20
6bb9479d9c64

some fixes

dav/Makefile file | annotate | diff | comparison | revisions
dav/webdav.c file | annotate | diff | comparison | revisions
--- a/dav/Makefile	Sat Aug 17 14:17:48 2013 +0200
+++ b/dav/Makefile	Sat Aug 17 14:34:15 2013 +0200
@@ -28,8 +28,8 @@
 
 include ../$(CONF).mk
 
-CFLAGS += `curl-config --cflags` `pkg-config --cflags openssl libxml-2.0`
-LDFLAGS += `curl-config --libs` `pkg-config --libs openssl libxml-2.0` 
+CFLAGS += `curl-config --cflags` `/opt/local/bin/pkg-config --cflags openssl libxml-2.0`
+LDFLAGS += `curl-config --libs` `/opt/local/bin/pkg-config --libs openssl libxml-2.0` 
 
 SRC  = main.c
 SRC += utils.c
--- a/dav/webdav.c	Sat Aug 17 14:17:48 2013 +0200
+++ b/dav/webdav.c	Sat Aug 17 14:34:15 2013 +0200
@@ -45,6 +45,7 @@
     if(!context) {
         return NULL;
     }
+    context->sessions = NULL;
     context->namespaces = ucx_map_new(16);
     if(!context->namespaces) {
         free(context);
@@ -77,11 +78,7 @@
     UcxMapIterator i = ucx_map_iterator(ctx->namespaces);
     UcxKey k;
     DavNamespace *ns;
-    UCX_MAP_FOREACH(k, ns, i) {
-        free(ns->prefix);
-        free(ns->name);
-        free(ns);
-    }
+    // TODO: free map elements
     ucx_map_free(ctx->namespaces);
     free(ctx);
 }

mercurial