code cleanup
This commit is contained in:
parent
f7651ca9dd
commit
a0c17f2ead
1 changed files with 3 additions and 4 deletions
|
@ -423,9 +423,9 @@ int main(int argc, char *argv[]) {
|
|||
channel_free(ch);
|
||||
}
|
||||
|
||||
list_free(&mapping->channels);
|
||||
|
||||
meter_close(mtr); /* closing connection */
|
||||
|
||||
list_free(&mapping->channels);
|
||||
meter_free(mtr);
|
||||
}
|
||||
|
||||
|
@ -437,11 +437,10 @@ int main(int argc, char *argv[]) {
|
|||
#endif /* LOCAL_SUPPORT */
|
||||
|
||||
/* householding */
|
||||
free(options.config);
|
||||
list_free(&mappings);
|
||||
curl_global_cleanup();
|
||||
|
||||
free(options.config);
|
||||
|
||||
/* close logfile */
|
||||
if (options.logfd) {
|
||||
free(options.log);
|
||||
|
|
Loading…
Add table
Reference in a new issue