(compose_destroy): Do not free outfiles[i], the caller is responsible for that.
Showing
1 changed file
with
1 additions
and
7 deletions
... | @@ -298,13 +298,7 @@ void | ... | @@ -298,13 +298,7 @@ void |
298 | compose_destroy (compose_env_t * env) | 298 | compose_destroy (compose_env_t * env) |
299 | { | 299 | { |
300 | mu_header_destroy (&env->header, NULL); | 300 | mu_header_destroy (&env->header, NULL); |
301 | if (env->outfiles) | 301 | free (env->outfiles); |
302 | { | ||
303 | int i; | ||
304 | for (i = 0; i < env->nfiles; i++) | ||
305 | free (env->outfiles[i]); | ||
306 | free (env->outfiles); | ||
307 | } | ||
308 | } | 302 | } |
309 | 303 | ||
310 | static int | 304 | static int | ... | ... |
-
Please register or sign in to post a comment