From ce448a21d771fd2ecb8239821ad8f88875115d3b Mon Sep 17 00:00:00 2001 From: volvet Date: Wed, 12 Mar 2014 16:21:33 +0800 Subject: [PATCH] fix double free crash in encoder --- codec/console/enc/src/welsenc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/console/enc/src/welsenc.cpp b/codec/console/enc/src/welsenc.cpp index 8f107855..bc84486d 100644 --- a/codec/console/enc/src/welsenc.cpp +++ b/codec/console/enc/src/welsenc.cpp @@ -105,7 +105,7 @@ static void SigIntHandler (int a) { } static int g_LevelSetting = 0; -int ParseLayerConfig( CReadConfig cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam ) +int ParseLayerConfig( CReadConfig & cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam ) { if (!cRdLayerCfg.ExistFile()) { fprintf (stderr, "Unabled to open layer #%d configuration file: %s.\n", iLayer, cRdLayerCfg.GetFileName().c_str());