[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] splint find memory leak in search.c
From: |
Rocco Corsi |
Subject: |
[Nano-devel] splint find memory leak in search.c |
Date: |
Fri, 08 Mar 2002 22:07:18 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 |
Tiny memory leak found...did Steven report this one?
Rocco
Index: search.c
===================================================================
RCS file: /cvsroot/nano/nano/search.c,v
retrieving revision 1.83
diff -u -r1.83 search.c
--- search.c 27 Feb 2002 04:38:32 -0000 1.83
+++ search.c 9 Mar 2002 02:55:06 -0000
@@ -145,6 +145,9 @@
replacing ? _(" (to replace)") : "",
buf);
+ /* Release buf now that we don't need it anymore */
+ free(buf);
+
/* Cancel any search, or just return with no previous search */
if ((i == -1) || (i < 0 && !last_search[0])) {
statusbar(_("Search Cancelled"));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] splint find memory leak in search.c,
Rocco Corsi <=