Fix double free
This commit is contained in:
@@ -292,6 +292,7 @@ void update_qr(qr_data *data)
|
||||
{
|
||||
throw_error("File downloaded isn't a zip.", ERROR_LEVEL_WARNING);
|
||||
}
|
||||
free(zip_buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -299,7 +300,6 @@ void update_qr(qr_data *data)
|
||||
}
|
||||
|
||||
free(filename);
|
||||
free(zip_buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -807,7 +807,9 @@ u32 http_get(const char *url, char ** filename, char ** buf, InstallType install
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEBUG(content_disposition);
|
||||
char * tok = strtok(content_disposition, "\"");
|
||||
DEBUG(tok);
|
||||
tok = strtok(NULL, "\"");
|
||||
|
||||
if(!(tok))
|
||||
|
||||
Reference in New Issue
Block a user