[cairo] [PATCH cairo 3/3] snapshot: Don't use extra after it's been freed (CID #220086)
Bryce Harrington
bryce at bryceharrington.org
Sat Jun 9 05:34:27 UTC 2018
Coverity ID: 220086
Signed-off-by: Bryce Harrington <bryce at bryceharrington.org>
---
src/cairo-surface-snapshot.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cairo-surface-snapshot.c b/src/cairo-surface-snapshot.c
index c8f3078..0dace49 100644
--- a/src/cairo-surface-snapshot.c
+++ b/src/cairo-surface-snapshot.c
@@ -108,6 +108,7 @@ _cairo_surface_snapshot_acquire_source_image (void *abstract_
if (unlikely (status)) {
cairo_surface_destroy (extra->target);
free (extra);
+ extra = NULL;
}
*extra_out = extra;
--
2.7.4
More information about the cairo
mailing list