Fix memory leak (WebDav)