# unchecked mallocs

1 messages from 2010-01-08 to 2010-01-08. Participants: Marinescu Paul dan.
Thread: https://gitlist.dev/t/22136

## Marinescu Paul dan, 2010-01-08 21:59

Subject: unchecked mallocs
Message-ID: <D6F784B72498304C93A8A4691967698E8EE2C45017@REX2.intranet.epfl.ch>
URL: https://gitlist.dev/e/D6F784B72498304C93A8A4691967698E8EE2C45017%40REX2.intranet.epfl.ch
In-Reply-To: <D6F784B72498304C93A8A4691967698E8EE2C45016@REX2.intranet.epfl.ch>

```

While checking out the git code in xdiff/xpatience.c and xdiff/xmerge.c I
came across several (three) locations where the return values of xdl_malloc
(#defined as malloc) is not checked. Shouldn't this be done here?

In git 1.6.6 the calls are at

xmerge.c:567
merge.c:571
xpatience.c:191

Paul
```
