From f82a8f5331d86519dbada5a88b07b2d018faf9a4 Mon Sep 17 00:00:00 2001 From: Stefan de Konink Date: Sun, 14 Dec 2008 03:29:58 +0100 Subject: [PATCH] likewise --- handler_osm_put.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handler_osm_put.c b/handler_osm_put.c index c372092..6258e8b 100644 --- a/handler_osm_put.c +++ b/handler_osm_put.c @@ -236,7 +236,8 @@ cherokee_handler_osm_init_put (cherokee_handler_osm_t *hdl) if (doc == NULL) { printf ("Error found: %s\n", axl_error_get (error)); axl_error_free (error); - return ret_error; + ret = ret_error; + goto post_error; } else { axlNode * node = axl_doc_get_root (doc); node = axl_node_get_first_child (node); @@ -420,6 +421,7 @@ xml_error: axl_doc_free (doc); } +post_error: cherokee_buffer_mrproper (&post); return ret; } -- 2.11.4.GIT