]> git.ipfire.org Git - thirdparty/shadow.git/commit
commonio: free removed database entries
authorChristian Göttsche <cgzones@googlemail.com>
Sat, 1 Apr 2023 11:36:51 +0000 (13:36 +0200)
committerSerge Hallyn <serge@hallyn.com>
Wed, 26 Apr 2023 22:52:54 +0000 (17:52 -0500)
commita8dd8ce6c9a5f6e69ed4e9fa7b0c0976bb4ba332
tree26dad008f623614a83095c34c1a3c34547a120a0
parent4e1f674c41724dd96ad2c3a0c02ac9f6666697ba
commonio: free removed database entries

Free the actual struct of the removed entry.

Example userdel report:

    Direct leak of 40 byte(s) in 1 object(s) allocated from:
        #0 0x55b230efe857 in reallocarray (./src/userdel+0xda857)
        #1 0x55b230f6041f in mallocarray ./lib/./alloc.h:97:9
        #2 0x55b230f6041f in commonio_open ./lib/commonio.c:563:7
        #3 0x55b230f39098 in open_files ./src/userdel.c:555:6
        #4 0x55b230f39098 in main ./src/userdel.c:1189:2
        #5 0x7f9b48c64189 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
lib/commonio.c