vncpcap2john.c: fix memleaks