mirror of
http://mpg123.de/trunk/.git
synced 2025-10-23 16:48:31 +03:00
memory gets lost on strdup according to valgrind...
git-svn-id: svn://scm.orgis.org/mpg123/trunk@439 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@@ -84,7 +84,7 @@ int performoption (int argc, char *argv[], topt *opt)
|
||||
loptchr = 0;
|
||||
if (opt->var) {
|
||||
if (opt->flags & GLO_CHAR) /* var is *char */
|
||||
*((char **) opt->var) = strdup(loptarg);
|
||||
*((char **) opt->var) = strdup(loptarg); /* valgrind claims lost memory here */
|
||||
else if(opt->flags & GLO_LONG)
|
||||
*((long *) opt->var) = atol(loptarg);
|
||||
else if(opt->flags & GLO_INT)
|
||||
|
||||
Reference in New Issue
Block a user