Added special strdup to liboptions, to prevent memory leaks for option strings
If you are doing memory leak debugging you don't want to see any leaks when stopping the program.
This commit is contained in:
@@ -87,7 +87,7 @@ static int handle_options(int short_option, int argi, char **argv)
|
||||
|
||||
switch (short_option) {
|
||||
case 'F':
|
||||
string = strdup(argv[argi]);
|
||||
string = options_strdup(argv[argi]);
|
||||
string_dl = strsep(&string, ",");
|
||||
string_ul = strsep(&string, ",");
|
||||
string_step = strsep(&string, ",");
|
||||
@@ -208,6 +208,8 @@ fail:
|
||||
/* exits */
|
||||
fm_exit();
|
||||
|
||||
options_free();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user