Fix a memory corruption (altbug #14929).
This commit is contained in:
parent
f2922999ae
commit
65a82cc0f2
@ -3247,7 +3247,9 @@ int main(int argc,const char *argv[])
|
||||
if (strstr(*I, "://") != NULL)
|
||||
{
|
||||
URLLst.push_back(*I);
|
||||
*I = strrchr(*I, '/')+1;
|
||||
const char *N = strdup(strrchr(*I, '/')+1);
|
||||
free((void *)*I);
|
||||
*I = N;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user