summaryrefslogtreecommitdiff
path: root/cethcan/main.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-10-10 23:20:40 +0000
committerroot <root@beaglebone.local.sublab.org>2013-10-10 23:20:40 +0000
commitf12be4da8d9520be572c142ae276f3b96f292fee (patch)
tree6917fc20de5c9a0f35f9130603985ca2e4a96f36 /cethcan/main.c
parentecfa61ab231482d6403add3f163250564824fc62 (diff)
cethcan: fix memory management
- primary config structure no longer left allocated in main() - memleak in RPC result buffer handling
Diffstat (limited to 'cethcan/main.c')
-rw-r--r--cethcan/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cethcan/main.c b/cethcan/main.c
index 99a32c5..a870ca2 100644
--- a/cethcan/main.c
+++ b/cethcan/main.c
@@ -77,6 +77,8 @@ int main(int argc, char **argv)
http_init();
+ json_decref(config);
+
event_base_loop(ev_base, 0);
return 0;
}