51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2453|回复: 0
打印 上一主题 下一主题

[原创] valgrind使用问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-3-3 11:37:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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);

求助高手解释一下
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-23 03:57 , Processed in 0.073844 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表