bug-ncurses
[Top][All Lists]
Advanced

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

Patch for memory leak


From: dan.weber
Subject: Patch for memory leak
Date: Fri, 29 May 2009 23:30:27 -0400

This is a patch for a small memory leak I noticed while writing a program using 
terminfo. setupterm() allocates memory to the global variable home_terminfo (in 
the function _nc_home_terminfo()). This is not freed by del_curterm() as it 
should be. The code added to del_curterm() simply checks if home_terminfo is 
NULL and, if not, frees it. Let me know if you need anything else.

Dan Weber

Attachment: lib_cur_term.patch
Description: Binary data


reply via email to

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