diff options
| author | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 15:10:18 +0000 | 
|---|---|---|
| committer | Steve Holme <steve_holme@hotmail.com> | 2014-02-24 20:35:48 +0000 | 
| commit | c27cc68815acd315c663e08ee9e3450b153f095f (patch) | |
| tree | 3c8ee28c2347d069857b16259701ef911e8c2bb0 /src/tool_cfgable.c | |
| parent | 0af2322bc6dec10612d33de4b100d5dbc7be739f (diff) | |
tool_operate: Moved easy handle cleanup into tool_main
Diffstat (limited to 'src/tool_cfgable.c')
| -rw-r--r-- | src/tool_cfgable.c | 10 | 
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c index e0010a702..9eb29ddb3 100644 --- a/src/tool_cfgable.c +++ b/src/tool_cfgable.c @@ -154,19 +154,13 @@ void config_free(struct OperationConfig *config)  {    struct OperationConfig *last = config; -  /* Find the last config structure */ -  while(last->next) -    last = last->next; -    /* Free each of the structures in reverse order */ -  do { +  while(last) {      struct OperationConfig *prev = last->prev; -    if(prev) -      last->easy = NULL;      free_config_fields(last);      free(last);      last = prev; -  } while(last); +  }  }  | 
