[geany/geany-plugins] 89e539: geanynumberedbookmarks: Reset global variable to NULL after free

Colomban Wendling git-noreply at xxxxx
Thu Dec 20 13:09:43 UTC 2018

Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 20 Dec 2018 13:09:43 UTC
Commit:      89e5392715e7e8b344dfc5eac0a35fecaa9bacd9

Log Message:
geanynumberedbookmarks: Reset global variable to NULL after free

This should not be a problem so long as the plugin library is actually
unloaded, but would be a problem if the module was resident, which is
handy for debugging.  So, properly reset the variable to NULL after
free for it to still have a sane value afterward.

Modified Paths:

Modified: geanynumberedbookmarks/src/geanynumberedbookmarks.c
1 lines changed, 1 insertions(+), 0 deletions(-)
@@ -1578,6 +1578,7 @@ void plugin_cleanup(void)
+	fdKnownFilesSettings = NULL;
 	/* free memory used for settings */

This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).

More information about the Plugins-Commits mailing list