mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 11:26:17 +03:00
set pointer to NULL after free
This commit is contained in:
parent
7cb3efc762
commit
43473101cf
|
@ -1826,4 +1826,5 @@ ImagingConvertInit(void) {
|
||||||
void
|
void
|
||||||
ImagingConvertFree(void) {
|
ImagingConvertFree(void) {
|
||||||
free(converters);
|
free(converters);
|
||||||
|
converters = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -691,4 +691,5 @@ ImagingPackInit(void) {
|
||||||
void
|
void
|
||||||
ImagingPackFree(void) {
|
ImagingPackFree(void) {
|
||||||
free(packers);
|
free(packers);
|
||||||
|
packers = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user