# HG changeset patch # User Olaf Wintermann # Date 1376742855 -7200 # Node ID 18efd2c2973df037535ad3ed65aa6aa3993b2033 # Parent 651989681053d99d56bdbf780c53ffebd8fe804d some fixes diff -r 651989681053 -r 18efd2c2973d dav/Makefile --- 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 diff -r 651989681053 -r 18efd2c2973d dav/webdav.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); }