<p></p>
<p><b>@tivrfoa</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2586#discussion_r489082241">src/project.c</a>:</p>
<pre style='color:#555'>> +    {
+               gboolean create_dir = dialogs_show_question_full(NULL, GTK_STOCK_OK, GTK_STOCK_CANCEL,
+                       _("Create the project's Filename directory?"),
+                       _("The path \"%s\" does not exist."),
+                       project_file_dirname);
+
+               /* if the project file's directory doesn't exist and the user wants to try and create it */
+               if (create_dir)
+               {
+                       /* try and create the project file's directory recursively */
+                       err_code = utils_mkdir(project_file_dirname, TRUE);
+                       if (err_code != 0)
+                       {
+                               SHOW_ERR1(_("Filename path could not be created (%s)."), g_strerror(err_code));
+                               gtk_widget_grab_focus(e->file_name);
+                               utils_free_pointers(2, project_file_dirname, locale_filename, NULL);
</pre>
<p>But <code>locale_filename</code> is created inside the function, and it returns after <code>utils_free_pointers</code>, so how would it be used further down?</p>
<p>Also, the code that creates <code>Base path</code> does free <code>locale_filename</code>:<br>
<a href="https://github.com/geany/geany/blob/master/src/project.c#L769">https://github.com/geany/geany/blob/master/src/project.c#L769</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2586#discussion_r489082241">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ52EZSTQG7GHUUILRTSF75MFANCNFSM4RLUS2GA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYOMICFT42APSQPWRLSF75MFA5CNFSM4RLUS2GKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODUUFVGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2586#discussion_r489082241",
"url": "https://github.com/geany/geany/pull/2586#discussion_r489082241",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>