Skip to content

Commit

Permalink
Merge pull request collectd#4281 from matwey/epics-deadlock
Browse files Browse the repository at this point in the history
epics: Fix potential deadlock in handle_label_event
  • Loading branch information
octo authored Feb 20, 2024
2 parents 7178a4e + 5c6eb9b commit 7671219
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/epics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7671219

Please sign in to comment.