|
-
February 20th, 2009, 09:30 AM
#1
[RESOLVED] memory leak in my memset usage?
Hello,
I have the following code that seems to generate a memory leak:
struct sockaddr_in serverAddr;
memset((char*)&serverAddr, 0, sizeof(_serverAddr));
I used a profiler to track the leak down to the memset call. It is only 1 block of memory, but I am wondering if I am using memset wrong?
Can anyone analyze this?
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|