bsc_hack: Don't strdup the string arguments
Fixes CIDs #1206577, #1206578
This commit is contained in:
parent
45fcb85236
commit
038f97a69f
|
@ -148,10 +148,10 @@ static void handle_options(int argc, char **argv)
|
|||
daemonize = 1;
|
||||
break;
|
||||
case 'l':
|
||||
database_name = strdup(optarg);
|
||||
database_name = optarg;
|
||||
break;
|
||||
case 'c':
|
||||
config_file = strdup(optarg);
|
||||
config_file = optarg;
|
||||
break;
|
||||
case 'p':
|
||||
create_pcap_file(optarg);
|
||||
|
|
Loading…
Reference in New Issue