1
0
Эх сурвалжийг харах

Bug 697027 - 7 - minor memory leaks found by Valgrind + TET

https://bugzilla.redhat.com/show_bug.cgi?id=697027
[Case 7]
Description: Adding slapi_sdn_done to free memories held in sdn.
Noriko Hosoi 14 жил өмнө
parent
commit
d317718a12

+ 1 - 0
ldap/servers/slapd/bind.c

@@ -316,6 +316,7 @@ do_bind( Slapi_PBlock *pb )
         {
             auto_bind = 1; /* flag the bind method */
             dn = slapi_ch_strdup(pb->pb_conn->c_dn);
+            slapi_sdn_done(&sdn);
             slapi_sdn_init_dn_passin(&sdn,dn);
         }
     }