modbus plugin: Fix a small memory leak in mb_config_add_datagroup(). id/modbus
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 7 Feb 2011 08:52:20 +0000 (09:52 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 7 Feb 2011 08:52:20 +0000 (09:52 +0100)
commitfadd1df67243af6d0d4f58b10b21755ee1f433d6
treebe89ef058741bc475b4ac6090db324c3f659d440
parent004290201bc10125edd0182167b3254acff77f93
modbus plugin: Fix a small memory leak in mb_config_add_datagroup().

datagroup.name wasn't freed and datagroup.collect would leak if
datagroup_copy() failed.
src/modbus.c