Skip to content
Snippets Groups Projects
Commit b0a4e029 authored by rds's avatar rds
Browse files

free what we no longer need

parent 32e83135
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Sep 30 15:22 2008 (rds)
* Last edited: Oct 2 08:59 2008 (rds)
* Created: Tue Aug 26 12:39:42 2008 (rds)
* CVS info: $Id: zmapConfigLoader.h,v 1.1 2008-10-01 15:27:34 rds Exp $
* CVS info: $Id: zmapConfigLoader.h,v 1.2 2008-10-02 08:33:30 rds Exp $
*-------------------------------------------------------------------
*/
......@@ -44,6 +44,6 @@
ZMapConfigIniContext zMapConfigIniContextProvide();
GList *zMapConfigIniContextGetSources(ZMapConfigIniContext context);
void zMapConfigSourcesFreeList(GList *config_sources_list);
#endif /* ZMAP_CONFIG_LOADER_H */
......@@ -25,9 +25,9 @@
* Description:
* Exported functions: See ZMap/zmapView.h
* HISTORY:
* Last edited: Oct 1 16:43 2008 (rds)
* Last edited: Oct 2 09:11 2008 (rds)
* Created: Thu May 13 15:28:26 2004 (edgrif)
* CVS info: $Id: zmapView.c,v 1.135 2008-10-01 15:43:15 rds Exp $
* CVS info: $Id: zmapView.c,v 1.136 2008-10-02 08:33:11 rds Exp $
*-------------------------------------------------------------------
*/
......@@ -311,7 +311,7 @@ gboolean zMapViewConnect(ZMapView zmap_view, char *config_str)
else
{
ZMapConfigIniContext context ;
GList *settings_list = NULL;
GList *settings_list = NULL, *free_this_list = NULL;
zMapStartTimer(ZMAP_GLOBAL_TIMER) ;
......@@ -335,7 +335,7 @@ gboolean zMapViewConnect(ZMapView zmap_view, char *config_str)
}
/* Set up connections to the named servers. */
if (result && settings_list)
if (result && (free_this_list = settings_list))
{
int connections = 0 ;
......@@ -419,6 +419,7 @@ gboolean zMapViewConnect(ZMapView zmap_view, char *config_str)
if (!connections)
result = FALSE ;
zMapConfigSourcesFreeList(free_this_list);
}
else
result = FALSE;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment