summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c16a60)
raw | patch | inline | side by side (parent: 6c16a60)
author | Scott Sanders <scott@jssjr.com> | |
Sun, 2 Oct 2011 23:56:24 +0000 (19:56 -0400) | ||
committer | Scott Sanders <scott@jssjr.com> | |
Sun, 2 Oct 2011 23:56:24 +0000 (19:56 -0400) |
src/write_graphite.c | patch | blob | history |
diff --git a/src/write_graphite.c b/src/write_graphite.c
index 9f7e5e74c75cbafba981e1caaee3c2c9d3a8eac6..870ce2bbb72dd991a3b2cc82ad8607d931178a7c 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
return (-1);
}
+ if ((n_ds_name = malloc(strlen(ds_name)+1)) == NULL)
+ {
+ ERROR ("Unable to allocate memory for normalized datasource name buffer");
+ return (-1);
+ }
+
if (ds_name && ds_name[0] != '\0') {
if (mangle_dots(n_ds_name, ds_name) == -1)
{