From: Howard Chu Date: Thu, 24 Oct 2002 23:51:34 +0000 (+0000) Subject: Plug memleak in previous commit X-Git-Tag: NO_SLAP_OP_BLOCKS~860 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b53b4c507ddac11f6c6d9650da16a34b0d93e03;p=openldap Plug memleak in previous commit --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 574ff9449a..2695143365 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -484,6 +484,7 @@ retry2: #endif retry_ber: if ( ber_sockbuf_ctrl( sb, LBER_SB_OPT_DATA_READY, NULL ) ) { + ber_free_buf( ber ); ber_init2( ber, NULL, ld->ld_lberoptions ); goto retry2; }