- 论坛徽章:
- 160
|
我在例子程序里定义
struct berval **vals = NULL;
................
vals = ldap_get_values_len(ld, e, a)
//这里vals的值可以正确取出并利用
..............
ldap_value_free_len(vals);
到此就出错了
(gdb) where
#0 0x40180140 in _int_free () from /lib/libc.so.6
#1 0x4017efbc in free () from /lib/libc.so.6
#2 0x4042e26e in ber_memfree () from /usr/lib/liblber.so.2
#3 0x4042e4ba in ber_bvfree () from /usr/lib/liblber.so.2
#4 0x4042e4f9 in ber_bvecfree () from /usr/lib/liblber.so.2
#5 0x40067e2f in ldap_value_free_len () from /usr/lib/libldap.so.2
到底是什么原因呢? |
|