Plug ber leakage:
result was leaking ber's in some error cases. ber_flush now called with no freeing so that caller of send_ldap_ber() can free its own ber. c->c_currentber was also being leaked if connection was destory current when a PDU input was outstanding. Fixed ber_flush to free ber upon write only to file.