[Bug 547889] New: LibVNCServer-0.9.7-1.13: small memory leak
http://bugzilla.novell.com/show_bug.cgi?id=547889 Summary: LibVNCServer-0.9.7-1.13: small memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package LibVNCServer-0.9.7-1.13 source code file LibVNCServer-0.9.7/libvncserver/vncauth.c function rfbDecryptPasswdFromFile I notice the following code unsigned char *passwd = (unsigned char *)malloc(9); if ((fp = fopen(fname,"r")) == NULL) return NULL; so if the return is taken, then passwd is a memory leak. Suggest new code if ((fp = fopen(fname,"r")) == NULL) return NULL; unsigned char *passwd = (unsigned char *)malloc(9); -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=547889
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=547889
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547889#c1
--- Comment #1 from Richard Guenther
https://bugzilla.novell.com/show_bug.cgi?id=547889
https://bugzilla.novell.com/show_bug.cgi?id=547889#c2
Agron Selimaj
https://bugzilla.novell.com/show_bug.cgi?id=547889
https://bugzilla.novell.com/show_bug.cgi?id=547889#c4
kk zhang
participants (1)
-
bugzilla_noreply@novell.com