- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following code if zlib. Now the
free(Path)
gives me the warning
P2 Mismatched allocation/deallocation gzlib.c; malloc_base.cpp mosek64_9_0.dll New
Why????
<pre>
293 if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL)
294 return NULL;
295 #if !defined(NO_snprintf) && !defined(NO_vsnprintf)
296 (void)snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd);
297 #else
298 sprintf(path, "<fd:%d>", fd); /* for debugging */
299 #endif
300 gz = gz_open(path, fd, mode);
301 free(path);
</pre>
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page