From: Ruben Kerkhof Date: Fri, 23 Dec 2016 17:47:59 +0000 (+0100) Subject: dpdkstat plugin: jump to the right label X-Git-Tag: collectd-5.8.0~258 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b5c3389fb07281ba9ac6859f50faa44184541d8;p=collectd.git dpdkstat plugin: jump to the right label --- diff --git a/src/dpdkstat.c b/src/dpdkstat.c index 2686be15..d1383458 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -289,13 +289,13 @@ static int dpdk_shm_init(size_t size) { if (err) { ERROR("dpdkstat semaphore init failed: %s", sstrerror(errno, errbuf, sizeof(errbuf))); - goto close; + goto fail; } err = sem_init(&g_configuration->sema_stats_in_shm, 1, 0); if (err) { ERROR("dpdkstat semaphore init failed: %s", sstrerror(errno, errbuf, sizeof(errbuf))); - goto close; + goto fail; } g_configuration->xstats = NULL;