Commit 0c023c2
committed
libvncserver: null extension data after closing in rfbCloseClient
If the function 'close' points to does a free() _and_ checks for
NULL (as is the case for rfbTightExtensionClientClose()), this
prevents double free()s.
If the function 'close' points to does not do a free(), nulling out
the data after closing out should (semantically) not do harm.
Closes #5851 parent 3ea549b commit 0c023c2
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
| |||
0 commit comments