oconfig: fix oconfig_free to free all elements
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 12 May 2015 20:40:27 +0000 (22:40 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 12 May 2015 20:40:27 +0000 (22:40 +0200)
commitec9b92a7dc86c01156e3a132cbc591fc7d746226
treeb72b41dfd51cc37c8d9c13785cec8a8183bad2ff
parentb57d6e25aa792f0461aee4e5bd6d1838c478af50
oconfig: fix oconfig_free to free all elements

The recursive nature of this function made it difficult to free the root
node of the config tree. Splitting it in 2 allows to work around this
problem.
src/java.c
src/liboconfig/oconfig.c