X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=wotsap.c;h=0a9f9df543df48c4b0852c2716fd623ea389af7a;hb=refs%2Fheads%2Fmain;hp=8996c9b2d11549ba8e9f7ff93177b8776db4e5e4;hpb=c063c72b0e63842f5466e0983183c98d4e05c54e;p=onak.git diff --git a/wotsap.c b/wotsap.c index 8996c9b..0a9f9df 100644 --- 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; }