Revision: 5153 http://geany.svn.sourceforge.net/geany/?rev=5153&view=rev Author: ntrel Date: 2010-08-12 16:51:55 +0000 (Thu, 12 Aug 2010)
Log Message: ----------- Fix a memory leak based on input by Daniel Marjam?\195?\164ki. Thanks.
Modified Paths: -------------- branches/Geany-0_19_1/ChangeLog branches/Geany-0_19_1/src/search.c
Modified: branches/Geany-0_19_1/ChangeLog =================================================================== --- branches/Geany-0_19_1/ChangeLog 2010-08-12 16:05:53 UTC (rev 5152) +++ branches/Geany-0_19_1/ChangeLog 2010-08-12 16:51:55 UTC (rev 5153) @@ -1,3 +1,9 @@ +2010-08-12 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/search.c: + Fix a memory leak based on input by Daniel Marjamäki. Thanks. + + 2010-08-10 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/editor.c:
Modified: branches/Geany-0_19_1/src/search.c =================================================================== --- branches/Geany-0_19_1/src/search.c 2010-08-12 16:05:53 UTC (rev 5152) +++ branches/Geany-0_19_1/src/search.c 2010-08-12 16:51:55 UTC (rev 5153) @@ -1442,7 +1442,7 @@
i++; /* correct for tool_prefs.grep_cmd */ argv_prefix[i++] = g_strdup("--"); - argv_prefix[i++] = g_strdup(search_text); + argv_prefix[i++] = search_text;
/* finally add the arguments(files to be searched) */ if (strstr(argv_prefix[1], "r")) /* recursive option set */ @@ -1461,7 +1461,6 @@
if (argv == NULL) /* no files */ { - g_strfreev(argv); return FALSE; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.