File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 25
25
- heifsave: reject multiband images [lovell]
26
26
- heifload: prevent possible int overflow for large images [kleisauke]
27
27
- tiffload: add missing read loop [kleisauke]
28
+ - prevent possible use-after-free when debugging via `--vips-leak` flag [lovell]
28
29
29
30
10/10/24 8.16.0
30
31
Original file line number Diff line number Diff line change @@ -198,14 +198,14 @@ vips_area_unref(VipsArea *area)
198
198
199
199
VIPS_FREEF (vips_g_mutex_free , area -> lock );
200
200
201
- g_free (area );
202
-
203
201
if (vips__leak ) {
204
202
g_mutex_lock (vips__global_lock );
205
203
vips_area_all = g_slist_remove (vips_area_all , area );
206
204
g_mutex_unlock (vips__global_lock );
207
205
}
208
206
207
+ g_free (area );
208
+
209
209
#ifdef DEBUG
210
210
g_mutex_lock (vips__global_lock );
211
211
printf ("vips_area_unref: free .. total = %d\n" ,
You can’t perform that action at this time.
0 commit comments