From 39c2649368b5e1e6d92d04f8634d8302d87f06b7 Mon Sep 17 00:00:00 2001 From: Sigmund Augdal Helberg Date: Tue, 31 Jan 2006 16:27:50 +0000 Subject: [PATCH] fixed the smallest and most elusive leak yet --- include/modules_inner.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/modules_inner.h b/include/modules_inner.h index af6e618ada..c796d97cfd 100644 --- a/include/modules_inner.h +++ b/include/modules_inner.h @@ -122,8 +122,17 @@ } \ if( p_config ) \ { \ + int i; \ p_config[ ++i_config ] = config_end; \ config_Duplicate( p_module, p_config ); \ + for( i = 0; i < i_config; i++ ) \ + { \ + if( p_config[ i ].i_action ) \ + { \ + free( p_config[ i ].ppf_action ); \ + free( p_config[ i ].ppsz_action_text ); \ + } \ + } \ free( p_config ); \ } \ else config_Duplicate( p_module, &config_end ); \ -- GitLab