Fix various memory leaks

Found with clang-tidy
This commit is contained in:
lbonn 2019-09-07 23:41:33 +02:00 committed by Drew DeVault
parent 32caabc7a1
commit a6307aed00
3 changed files with 11 additions and 4 deletions

View file

@ -259,6 +259,7 @@ int main(int argc, char **argv) {
exit(EXIT_SUCCESS);
break;
case 'c': // config
free(config_path);
config_path = strdup(optarg);
break;
case 'C': // validate