diff options
| author | Christian Beier <dontmind@freeshell.org> | 2015-04-17 12:01:58 +0200 |
|---|---|---|
| committer | Christian Beier <dontmind@freeshell.org> | 2015-04-17 12:01:58 +0200 |
| commit | b7946a6f36cde92f02bcc25f3599fe751482d781 (patch) | |
| tree | b92f76d5d61d67557517eecda03f769b1268a960 /libvncserver/tight.c | |
| parent | e9302ef7ac697b28ce2b3809e26ccce131969833 (diff) | |
| parent | 97490d68b024d76f2ebb52d59ffb1e8acc399d5e (diff) | |
| download | libtdevnc-b7946a6f36cde92f02bcc25f3599fe751482d781.tar.gz libtdevnc-b7946a6f36cde92f02bcc25f3599fe751482d781.zip | |
Merge pull request #72 from lopago/fix-segfaults
prevent segfaults due to uninitialized memory
Diffstat (limited to 'libvncserver/tight.c')
| -rw-r--r-- | libvncserver/tight.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libvncserver/tight.c b/libvncserver/tight.c index 276a2e3..89a7f25 100644 --- a/libvncserver/tight.c +++ b/libvncserver/tight.c @@ -163,7 +163,11 @@ void rfbTightCleanup (rfbScreenInfoPtr screen) tightAfterBufSize = 0; tightAfterBuf = NULL; } - if (j) tjDestroy(j); + if (j) { + tjDestroy(j); + /* Set freed resource handle to 0! */ + j = 0; + } } |
