Skip to content

Commit

Permalink
NXrender.c: fix possible memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
uli42 committed May 31, 2019
1 parent bab90cd commit 57f63f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nx-X11/programs/Xserver/hw/nxagent/NXrender.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,8 @@ ProcRenderTrapezoids (ClientPtr client)
{
if (pFormat != NULL)
{
/* FIXME: free if != NullBox? */
if (nxagentTrapezoidExtents && nxagentTrapezoidExtents != NullBox)
free(nxagentTrapezoidExtents);
nxagentTrapezoidExtents = (BoxPtr) malloc(sizeof(BoxRec));
miTrapezoidBounds (ntraps, (xTrapezoid *) &stuff[1], nxagentTrapezoidExtents);
}
Expand Down

0 comments on commit 57f63f4

Please sign in to comment.