]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
epics: Fix potential deadlock in handle_label_event 4281/head
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Sun, 18 Feb 2024 17:21:54 +0000 (20:21 +0300)
committerMatwey V. Kornilov <matwey.kornilov@gmail.com>
Mon, 19 Feb 2024 19:44:27 +0000 (22:44 +0300)
src/epics.c

index 9367432cce729fbc1730b0e548747492845708fd..00b755e7fae081affa7506c3059fe162b0ce75c9 100644 (file)
@@ -179,8 +179,7 @@ static void handle_label_event(struct pv *p, evargs args) {
   p->label = strdup(value);
   if (p->label == NULL) {
     ERROR("epics plugin: Cannot allocate memory for \"%s\" value", p->name);
-
-    return;
+    // fall-through
   }
 
   pthread_mutex_unlock(&epics_plugin.lock);