]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix little leak on vm load
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Oct 2012 17:38:08 +0000 (12:38 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Oct 2012 17:38:08 +0000 (12:38 -0500)
src/switch_console.c

index 121e8de336435b32d7f56c15b16eaf5cba596c94..c84b823695d8df49b8486e121ec81931381d1060 100644 (file)
@@ -219,6 +219,7 @@ SWITCH_DECLARE(switch_status_t) switch_stream_write_file_contents(switch_stream_
                        stream->write_function(stream, "%s", line_buf);
                }
                fclose(fd);
+               switch_safe_free(line_buf);
                status = SWITCH_STATUS_SUCCESS;
        }