X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fovs_stats.c;h=f56e12b620be79695e668be934cc5d56c8808ccd;hb=2709cad046fabc6b6d3ff198dd39d188040f991c;hp=1e6ddd2d4c758066e1cb693ee65d7c1edb7918dc;hpb=39d06e521542649ceda75de781d5f83579df255f;p=collectd.git diff --git a/src/ovs_stats.c b/src/ovs_stats.c index 1e6ddd2d..f56e12b6 100644 --- a/src/ovs_stats.c +++ b/src/ovs_stats.c @@ -849,6 +849,7 @@ static int ovs_stats_plugin_config(oconfig_item_t *ci) { char *br_name_dup = strdup(br_name); if (br_name_dup == NULL) { ERROR("%s: strdup() copy bridge name fail", plugin_name); + sfree(bridge); goto cleanup_fail; }