]> granicus.if.org Git - graphviz/commit
gvPluginList: fix: manage 'q' as a 'strview_t'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 26 Jun 2022 20:22:57 +0000 (13:22 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Jul 2022 00:13:06 +0000 (17:13 -0700)
commitffd29fda27e5b51552a9625acab2a2898c444263
tree23f3bede55bbf496c764a78e99ea3d3b165623ba
parentc6b26d5e422dab8c098dba44852919e5105ef1b2
gvPluginList: fix: manage 'q' as a 'strview_t'

This fixes a memory leak that would occur when duplicate items were encountered.
The conditional block in this loop would not be entered and the memory that `q`
pointed to would be lost in the next iteration of the loop when `q` was set to a
new string.
lib/gvc/gvplugin.c