X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=wotsap.c;h=0a9f9df543df48c4b0852c2716fd623ea389af7a;hb=c0fee41b459cc3822d890bac98882a6c9696c033;hp=8996c9b2d11549ba8e9f7ff93177b8776db4e5e4;hpb=e82fd57b92d94287f728e37a3e17aaab11b722b8;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; }