Fangjun Kuang
Committed by GitHub

Fix WASM for kws (#758)

@@ -6,15 +6,15 @@ function freeConfig(config, Module) { @@ -6,15 +6,15 @@ function freeConfig(config, Module) {
6 } 6 }
7 7
8 if ('transducer' in config) { 8 if ('transducer' in config) {
9 - freeConfig(config.transducer); 9 + freeConfig(config.transducer, Module);
10 } 10 }
11 11
12 if ('featConfig' in config) { 12 if ('featConfig' in config) {
13 - freeConfig(config.featConfig); 13 + freeConfig(config.featConfig, Module);
14 } 14 }
15 15
16 if ('modelConfig' in config) { 16 if ('modelConfig' in config) {
17 - freeConfig(config.modelConfig); 17 + freeConfig(config.modelConfig, Module);
18 } 18 }
19 19
20 if ('keywordsBuffer' in config) { 20 if ('keywordsBuffer' in config) {