[mythtv-commits] mythtv/master commit: 33e783080 by Gavin Hurlbut (Beirdo)

MythTV noreply at mythtv.org
Tue Jan 31 07:29:40 UTC 2012


      Author:  Gavin Hurlbut <ghurlbut at mythtv.org>
 Change Date:  2012-01-30T23:27:26-08:00
   Push Date:  2012/01/30 23:29:28 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  33e783080fa8dc30bb8b6bd01d853c498f8dc382
   Changeset:  https://github.com/MythTV/mythtv/commit/33e783080

Log:

Fix realloc use (found by cppcheck 1.52)

If the memory reallocation fails, realloc returns NULL.  If we blindly set the
pointer to the return value, we will leak memory on a failed memory realloc
(which means we are already out of memory).

Modified:

   mythtv/libs/libmythbase/system-windows.cpp



More information about the mythtv-commits mailing list