]> the.earth.li Git - onak.git/blobdiff - wotsap.c
Fix issues found by llvm scan-build static analysis
[onak.git] / wotsap.c
index 8996c9b2d11549ba8e9f7ff93177b8776db4e5e4..0a9f9df543df48c4b0852c2716fd623ea389af7a 100644 (file)
--- a/wotsap.c
+++ b/wotsap.c
@@ -197,6 +197,9 @@ int main(int argc, char *argv[])
        while ((optchar = getopt(argc, argv, "c:")) != -1 ) {
                switch (optchar) {
                case 'c':
+                       if (configfile != NULL) {
+                               free(configfile);
+                       }
                        configfile = strdup(optarg);
                        break;
                }