add corresponding free

This commit is contained in:
Isaac Connor 2015-01-13 19:52:15 -05:00
parent 509de3ec27
commit facda38871
1 changed files with 2 additions and 1 deletions

View File

@ -3940,7 +3940,7 @@ void MonitorStream::runStream()
temp_read_index = temp_image_buffer_count; temp_read_index = temp_image_buffer_count;
temp_write_index = temp_image_buffer_count; temp_write_index = temp_image_buffer_count;
char *swap_path; char *swap_path = 0;
bool buffered_playback = false; bool buffered_playback = false;
int swap_path_length = strlen(config.path_swap)+1; // +1 for NULL terminator int swap_path_length = strlen(config.path_swap)+1; // +1 for NULL terminator
@ -4209,6 +4209,7 @@ void MonitorStream::runStream()
} }
} }
} }
if ( swap_path ) free( swap_path );
closeComms(); closeComms();
} }