summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de2f2b8)
raw | patch | inline | side by side (parent: de2f2b8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 22:07:31 +0000 (23:07 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 22:07:31 +0000 (23:07 +0100) |
src/modbus.c | patch | blob | history |
diff --git a/src/modbus.c b/src/modbus.c
index cfc6331e293218b4fdfaca1d99eadabae02754fa..d2b0a535ff9a0dd135f05fe2b217145ccc9c0315 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++)
{