Revision: 5145 http://geany.svn.sourceforge.net/geany/?rev=5145&view=rev Author: frlan Date: 2010-08-12 05:49:07 +0000 (Thu, 12 Aug 2010)
Log Message: ----------- Fix a memory leak based on input by Daniel Marjam?\195?\164ki. Thanks.
Modified Paths: -------------- trunk/ChangeLog trunk/src/search.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-08-11 19:04:05 UTC (rev 5144) +++ trunk/ChangeLog 2010-08-12 05:49:07 UTC (rev 5145) @@ -1,3 +1,9 @@ +2010-08-12 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * src/search.c: + Fix a memory leak based on input by Daniel Marjamäki. Thanks. + + 2010-08-11 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* doc/geany.txt, doc/geany.html:
Modified: trunk/src/search.c =================================================================== --- trunk/src/search.c 2010-08-11 19:04:05 UTC (rev 5144) +++ trunk/src/search.c 2010-08-12 05:49:07 UTC (rev 5145) @@ -1455,7 +1455,7 @@
if (argv == NULL) /* no files */ { - g_strfreev(argv); + g_free(search_text); return FALSE; }
@@ -1494,6 +1494,7 @@ utils_free_pointers(2, str, utf8_str, NULL); ret = TRUE; } + g_free(search_text); g_strfreev(argv); return ret; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.