Commit 5354b800 5354b800503a73b936dc23584f14b8a37fd11473 by Alain Magloire

Free the body and the url when done.

1 parent 144b407d
...@@ -65,6 +65,7 @@ body_destroy (body_t *pbody, void *owner) ...@@ -65,6 +65,7 @@ body_destroy (body_t *pbody, void *owner)
65 if (body->filename) 65 if (body->filename)
66 free (body->filename); 66 free (body->filename);
67 stream_destroy (&(body->stream), body); 67 stream_destroy (&(body->stream), body);
68 free (body);
68 } 69 }
69 *pbody = NULL; 70 *pbody = NULL;
70 } 71 }
......
...@@ -62,6 +62,8 @@ url_destroy (url_t *purl) ...@@ -62,6 +62,8 @@ url_destroy (url_t *purl)
62 if (url->host) 62 if (url->host)
63 free (url->host); 63 free (url->host);
64 64
65 free (url);
66
65 *purl = NULL; 67 *purl = NULL;
66 } 68 }
67 } 69 }
......