criu/lib/c
Martin Wührer 6b84657ca4 c-lib: fixed memleaks, add criu_local_free_opts()
If `criu_local_init_opts()` is applied on the same opts-object
several times, not all of the allocated memory gets freed.
Therefore, the functions `criu_(local_)free_opts()` were introduced.
These functions ensure, that opts get freed accordingly.
Furthermore, `criu_(local_)free_opts()` gets part of the c-api,
and can therefore be called by external projects too.

Additionally, with this commit `criu_local_init_opts()` now uses
`criu_local_free_opts()`, to free the opts-parameter if it was already
initalized before.

This commit also contains a fix in `send_req_and_recv_resp_sk()` which
lead to a memory leak, if criu-notifications were received.

Signed-off-by: Martin Wührer <martin.wuehrer@artech.at>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
2019-04-20 20:25:26 -07:00
..
criu.c c-lib: fixed memleaks, add criu_local_free_opts() 2019-04-20 20:25:26 -07:00
criu.h c-lib: fixed memleaks, add criu_local_free_opts() 2019-04-20 20:25:26 -07:00
criu.pc.in build: Move C and Python libraries into lib 2016-02-15 15:32:39 +03:00
Makefile compel: no -r for ARM ldflags 2017-04-02 18:12:10 +03:00