From c314a0e7b845fd50997e06f97e5bffcb9c4b7732 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 24 Jan 2016 10:02:20 +0000 Subject: source/sox: explicitly freeze comment keys We load them frequently enough that the garbage is not worth it. --- lib/dtas/source/sox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb index b4340fd..c4c65aa 100644 --- a/lib/dtas/source/sox.rb +++ b/lib/dtas/source/sox.rb @@ -71,7 +71,7 @@ class DTAS::Source::Sox # :nodoc: key, value = line.split('=', 2) key && value or next # TODO: multi-line/multi-value/repeated tags - tmp[key.upcase] = value + tmp[key.upcase.freeze] = value end end tmp -- cgit v1.2.3-24-ge0c7