mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user