提交 92bd5358 authored 作者: Michael Jerris's avatar Michael Jerris

fix mod_enum on windows, fix logic error in free function causing operations on freed memory

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3503 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 fb447028
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
OutputDirectory="$(SolutionDir)$(ConfigurationName)" OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4" ConfigurationType="4"
CharacterSet="1" CharacterSet="0"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
......
...@@ -258,10 +258,10 @@ static void free_results(enum_record_t **results) ...@@ -258,10 +258,10 @@ static void free_results(enum_record_t **results)
for(rp = *results; rp;) { for(rp = *results; rp;) {
fp = rp; fp = rp;
rp = rp->next;
switch_safe_free(fp->service); switch_safe_free(fp->service);
switch_safe_free(fp->route); switch_safe_free(fp->route);
switch_safe_free(fp); switch_safe_free(fp);
rp = rp->next;
} }
*results = NULL; *results = NULL;
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2" ConfigurationType="2"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2" CharacterSet="0"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2" ConfigurationType="2"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2" CharacterSet="1"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论