Skip to content

Commit

Permalink
Ticket 48920 - Memory leak in pwdhash-bin
Browse files Browse the repository at this point in the history
Bug Description:  We have a memory leak in pwdhash-bin

    ==388==ERROR: LeakSanitizer: detected memory leaks

    Direct leak of 72 byte(s) in 1 object(s) allocated from:
        #0 0x7f5f5f94dfd0 in calloc (/lib64/libasan.so.3+0xc6fd0)
        #1 0x7f5f5d7f72ae  (/lib64/libnss3.so+0x752ae)

    SUMMARY: AddressSanitizer: 72 byte(s) leaked in 1 allocation(s).

Fix Description:  Properly shutdown NSS at the end of usage

https://fedorahosted.org/389/ticket/48920

Author: wibrown

Review by: nhosoi
  • Loading branch information
Firstyear committed Jul 14, 2016
1 parent 6c77c37 commit 6d50ba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldap/servers/slapd/tools/pwenc.c
Expand Up @@ -263,6 +263,9 @@ main( argc, argv )

plugin_closeall( 1 /* Close Backends */, 1 /* Close Globals */);

/* Shutdown NSS to free values */
(void)NSS_Shutdown();

return( rc == 0 ? 0 : 1 );
}

Expand Down

0 comments on commit 6d50ba5

Please sign in to comment.