Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit e5f7f6a

Browse files
committed
[CID 16016] MCGPathAddPolyline(): Free uninitialized pointer.
1 parent 781772d commit e5f7f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgraphics/src/path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ void MCGPathAddPolyline(MCGPathRef self, const MCGPoint *p_points, uindex_t p_ar
476476
if (t_success)
477477
t_success = self -> is_mutable;
478478

479-
SkPoint *t_points;
479+
SkPoint *t_points = NULL;
480480
if (t_success)
481481
t_success = MCMemoryNewArray(p_arity, t_points);
482482

0 commit comments

Comments
 (0)