PVS-StudioWarnings

PVS-Studio warning V575 for Fennec Media Project

Nov 20th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. int settings_proc_language_packs(....)
  2. {
  3.   ....
  4.   case WM_DESTROY:
  5.     if(mem_files)
  6.     {
  7.       mem_files = 0;
  8.       sys_mem_free(mem_files);
  9.     }
  10.     EndDialog(hwnd,0);
  11.     break;
  12.   ....
  13. }
  14.  
  15. This suspicious code was found in Fennec Media Project project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V575 The null pointer is passed into 'free' function. Inspect the first argument. settings interface.c 3096
  18.  
  19. PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment