solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit 51e15a8167e2cef0a56ec93c73863efb72f9db9b
parent aa07d446218975dbb9241e7330794d959868f6e2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 18 Jan 2017 14:12:47 +0100

Fix memory leaks

The reference of an anchor was not correctly managed.

Diffstat:
Msrc/solstice_entity.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/solstice_entity.c b/src/solstice_entity.c @@ -195,6 +195,7 @@ create_node(struct solstice* solstice, const struct solparser_entity* entity) res = solstice_node_add_child(node, tgt); if(res != RES_OK) goto error; + solstice_node_ref_put(tgt); tgt = NULL; }