output/httpd: add missing g_free in error path

This commit is contained in:
Jonathan Neuschäfer 2011-07-18 14:35:04 +02:00 committed by Max Kellermann
parent 36aa8ce3c9
commit 296085ff23

View File

@ -103,6 +103,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format,
if (encoder_plugin == NULL) {
g_set_error(error, httpd_output_quark(), 0,
"No such encoder: %s", encoder_name);
g_free(httpd);
return NULL;
}