• Martin Wührer's avatar
    c-lib: fixed memleaks, add criu_local_free_opts() · 6b84657c
    Martin Wührer authored
    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: 's avatarMartin Wührer <martin.wuehrer@artech.at>
    Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
    6b84657c
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...