1
0
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:
thor
2006-08-25 09:24:38 +00:00
parent 931282f705
commit 7629b027dc

View File

@@ -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)