mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-13 05:48:56 +00:00
fix the issue of illegal memory access
This commit is contained in:
parent
fed78a3f1a
commit
50f921119e
@ -1269,11 +1269,11 @@ int main(int argc, const char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(results);
|
|
||||||
for (int i = 0; i < num_results; i++) {
|
for (int i = 0; i < num_results; i++) {
|
||||||
free(results[i].data);
|
free(results[i].data);
|
||||||
results[i].data = NULL;
|
results[i].data = NULL;
|
||||||
}
|
}
|
||||||
|
free(results);
|
||||||
free_sd_ctx(sd_ctx);
|
free_sd_ctx(sd_ctx);
|
||||||
free(control_image_buffer);
|
free(control_image_buffer);
|
||||||
free(input_image_buffer);
|
free(input_image_buffer);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user