diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2018-03-27 21:28:21 +0000 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2018-03-27 21:28:21 +0000 |
commit | d4dd00f58a502c9ca4b63e36ce6bc7a9945dc63c (patch) | |
tree | faac99f51f182bb8c0a03e95e393d421ac9ddf42 /src/freeipmi_plugin.c | |
parent | New upstream version 1.9.0+dfsg (diff) | |
download | netdata-upstream/1.10.0+dfsg.tar.xz netdata-upstream/1.10.0+dfsg.zip |
New upstream version 1.10.0+dfsgupstream/1.10.0+dfsg
Diffstat (limited to 'src/freeipmi_plugin.c')
-rw-r--r-- | src/freeipmi_plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/freeipmi_plugin.c b/src/freeipmi_plugin.c index 9cd736bb..df4c019a 100644 --- a/src/freeipmi_plugin.c +++ b/src/freeipmi_plugin.c @@ -538,6 +538,10 @@ static void excluded_record_ids_parse(const char *s) { if(n != 0) { excluded_record_ids = realloc(excluded_record_ids, (excluded_record_ids_length + 1) * sizeof(int)); + if(!excluded_record_ids) { + fprintf(stderr, "freeipmi.plugin: failed to allocate memory. Exiting."); + exit(1); + } excluded_record_ids[excluded_record_ids_length++] = (int)n; } } |