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, 19 May 2015 15:41:27 +0000 (17:41 +0200)
commitaee87d9c1665ca8823c7489bfc9900ff12e0e177
treec59bf91ab032f1788c166b42f300595a5224e197
parenta2c0ff89b4792142dff02ee46bc5a578a5e6063e
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