1
0
mirror of https://github.com/git/git.git synced 2025-03-25 16:45:04 +00:00
Brandon Casey 040a655116 cleanup: use internal memory allocation wrapper functions everywhere
The "x"-prefixed versions of strdup, malloc, etc. will check whether the
allocation was successful and terminate the process otherwise.

A few uses of malloc were left alone since they already implemented a
graceful path of failure or were in a quasi external library like xdiff.

Additionally, the call to malloc in compat/win32/syslog.c was not modified
since the syslog() implemented there is a die handler and a call to the
x-wrappers within a die handler could result in recursion should memory
allocation fail.  This will have to be addressed separately.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-06 13:54:32 -07:00
..
2010-12-16 12:55:36 -08:00
2010-12-16 12:55:36 -08:00
2008-09-30 14:30:06 -07:00
2009-03-02 18:28:06 -08:00
2007-06-07 00:04:01 -07:00
2010-11-23 16:06:50 -08:00
2011-08-28 22:03:26 -07:00
2011-08-28 22:03:26 -07:00
2010-08-14 19:35:38 -07:00
2009-09-18 20:00:42 -07:00