]> git.sur5r.net Git - openldap/commitdiff
ITS#8690 plug memleak on Delete ops
authorHoward Chu <hyc@openldap.org>
Fri, 21 Jul 2017 18:04:08 +0000 (19:04 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 12 Sep 2017 23:37:42 +0000 (16:37 -0700)
servers/slapd/overlays/syncprov.c

index 246628c1a1727802b5123eaab51cddf30edfb6f0..3e76673360f2ec3e2e4b8c22480d4dc3752f91d2 100644 (file)
@@ -1980,6 +1980,8 @@ syncprov_op_response( Operation *op, SlapReply *rs )
                                                continue;
                                        syncprov_qresp( opc, sm->sm_op, LDAP_SYNC_DELETE );
                                }
+                               if ( opc->ssres.s_info )
+                                       free_resinfo( &opc->ssres );
                                break;
                        }
                }