Free the body and the url when done.
Showing
2 changed files
with
3 additions
and
0 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment