Commit c07c97f3 authored by Rudolf Polzer's avatar Rudolf Polzer
Browse files

Fix memory leak in authproto.

The leak does not actually have any impact as it only occurs in the error case
in which the calling process (auth_x11) exits anyway; yet fixing this
anyway seems a good idea.

cat_authproto (the demo program) had an actual, real leak with this,
even - but it is a test program only.

Also remove a potential bad pointer dereference in case NULL isn't the
zero bit pattern.

Fixes #96.
parent d9db65f6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment