summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9c9a53b)
raw | patch | inline | side by side (parent: 9c9a53b)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 22:07:31 +0000 (23:07 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 30 Nov 2015 21:57:00 +0000 (22:57 +0100) |
src/modbus.c | patch | blob | history |
diff --git a/src/modbus.c b/src/modbus.c
index aa69ee10100f2c0555b5c8386c2a1fdef25f9621..2cef4aa273e6a166bee9f975b8d4b694f34b2dab 100644 (file)
--- a/src/modbus.c
+++ b/src/modbus.c
status = cf_util_get_string_buffer (ci, host->host, sizeof (host->host));
if (status != 0)
+ {
+ sfree (host);
return (status);
+ }
if (host->host[0] == 0)
+ {
+ sfree (host);
return (EINVAL);
+ }
for (i = 0; i < ci->children_num; i++)
{