• Max Kellermann's avatar
    lib/nfs/Connection: fix memory leak (and assertion failure) · a543627a
    Max Kellermann authored
    nfs_destroy_context() will invoke all pending callbacks with
    err==-EINTR.  In CancellableCallback::Callback(), this will invoke
    NfsConnection::DeferClose(), which however is only designed to be
    called from nfs_service().  In non-debug mode, this will leak memory
    because nfs_close_async() is never called.
    
    Workaround: before nfs_destroy_context(), invoke nfs_close_async() on
    all pending file handles.
    a543627a
Name
Last commit
Last update
android Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...