Fixed a problem with some strings not being free'd inside a loop

where they were being used.

No idea how this issue has arisen or why it has not been
reported, perhaps a recent git merge fault?
This commit is contained in:
JamesH
2013-10-02 15:25:17 +01:00
parent f43656cdf7
commit e1d36801c4

View File

@@ -1447,20 +1447,18 @@ int main(int argc, const char **argv)
status = mmal_port_disable(encoder_output_port);
}
if (use_filename)
{
free(use_filename);
use_filename = NULL;
}
if (final_filename)
{
free(final_filename);
final_filename = NULL;
}
} // end for (frame)
if (use_filename)
{
free(use_filename);
use_filename = NULL;
}
if (final_filename)
{
free(final_filename);
final_filename = NULL;
}
vcos_semaphore_delete(&callback_data.complete_semaphore);
}
}