From facda38871cf364c3388d28c1640d39d5e37fd34 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 13 Jan 2015 19:52:15 -0500 Subject: [PATCH] add corresponding free --- src/zm_monitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index a20c0c4f0..71befb769 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -3940,7 +3940,7 @@ void MonitorStream::runStream() temp_read_index = temp_image_buffer_count; temp_write_index = temp_image_buffer_count; - char *swap_path; + char *swap_path = 0; bool buffered_playback = false; 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(); }