Mismatched allocation/deallocation gzlib.c

Mismatched allocation/deallocation gzlib.c

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>

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.