|
valgrind的结果如下
699 ==17177== 8216 (52 direct, 8164 indirect) bytes in 1 blocks are definitely lost in loss record 22 of 34
700 ==17177== at 0x1B9022E8: malloc (vg_replace_malloc.c:130)
701 ==17177== by 0x1B92F3C9: my_malloc (in /usr/local/mysql/lib/mysql/libmysqlclient.so.14)
702 ==17177== by 0x1B94FEAB: cli_read_rows (in /usr/local/mysql/lib/mysql/libmysqlclient.so.14)
703 ==17177== by 0x1B951995: cli_read_query_result (in /usr/local/mysql/lib/mysql/libmysqlclient.so.14)
704 ==17177== by 0x1B951BAB: mysql_real_query (in /usr/local/mysql/lib/mysql/libmysqlclient.so.14)
705 ==17177== by 0x1B92939A: mysql_query (in /usr/local/mysql/lib/mysql/libmysqlclient.so.14)
706 ==17177== by 0x804D654: MRMC::CDKeyTran::execute(st_mysql*, char const*, int) (mrmc_cdkey_tran.cpp:8 4)
707 ==17177== by 0x804DE79: MRMC::CDKeyTran::loadAllPubInfo(std::map<std::string, MRMC:ubInfo, std::le ss<std::string>, std::allocator<std::pair<std::string const, MRMC:ubInfo> > >&) (mrmc_cdkey_tran.cpp: 230)
708 ==17177== by 0x8069C60: MRMC::CDKeyTran::doUpdate() (mrmc_cdkey_tran.cpp:5362)
709 ==17177== by 0x8070764: MRMC::CdkeySvr::update(void*) (mrmc_cdkey_svr.cpp:90)
710 ==17177== by 0x1BA6754D: pthread_start_thread (in /lib/libpthread-0.10.so)
711 ==17177== by 0x1BC75B89: clone (in /lib/libc-2.3.4.so)
712 ==17177==
但是检查了代码,已经对查询结果进行了释放 mysql_free_result(result);
求助高手解释一下 |
|