bug-guile-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-guile-ncurses] Memory leak in new-item


From: John Darrington
Subject: [Bug-guile-ncurses] Memory leak in new-item
Date: Fri, 20 May 2016 14:34:17 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

ncurses/menu_type.c:68 (gucu_new_item) Has the lines:

  char *c_name = scm_to_locale_string (name);
  char *c_description = scm_to_locale_string (description);

But scm_to_locale_string allocates the memory for its return
value on the heap, and c_name and c_description are never freed.

Hence any call to new-item will leak memory.

J'


-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]