Skip to content

Commit 77243d3

Browse files
committed
Adds free(cl->lastError)
Trying to make fuzzing test pass
1 parent fa40867 commit 77243d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libvncserver/rfbserver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ rfbClientConnectionGone(rfbClientPtr cl)
660660
rfbPrintStats(cl);
661661
rfbResetStats(cl);
662662

663+
if(cl->lastError)
664+
free(cl->lastError);
663665
free(cl);
664666
}
665667

0 commit comments

Comments
 (0)