[Github-comments] [geany/geany] build.c: Fix memory leak & make some small refactorings (#2271)
elextr
notifications at xxxxx
Sat Aug 24 10:35:20 UTC 2019
elextr commented on this pull request.
> @@ -817,7 +816,8 @@ static gchar *prepare_run_cmd(GeanyDocument *doc, gchar **working_dir, guint cmd
{
if (vc->skip_run_script)
{
- utils_free_pointers(2, cmd_string_utf8, working_dir_utf8, NULL);
+ utils_free_pointers(3, cmd_string_utf8, working_dir_utf8,
+ *working_dir, NULL);
Freed in the caller here https://github.com/geany/geany/blob/a70fd97f9c841e47d4df6363c5870dcd3dd48e97/src/build.c#L945 I think.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2271#discussion_r317353365
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190824/1b71e4ef/attachment.html>
More information about the Github-comments
mailing list