[PATCH xf86-video-mga 1/4] Remove xalloc/xcalloc/xrealloc/xfree

Matt Turner mattst88 at gmail.com
Mon Sep 26 21:15:27 PDT 2011


On Tue, Sep 27, 2011 at 12:11 AM, Jamey Sharp <jamey at minilop.net> wrote:
> On Mon, Sep 26, 2011 at 10:41:49PM -0400, Matt Turner wrote:
>> --- a/src/mga_video.c
>> +++ b/src/mga_video.c
>> @@ -131,8 +131,7 @@ void MGAInitVideo(ScreenPtr pScreen)
>>           num_adaptors = 1;
>>           adaptors = &newAdaptor;
>>       } else {
>> -         newAdaptors =  /* need to free this someplace */
>> -             xalloc((num_adaptors + 1) * sizeof(XF86VideoAdaptorPtr*));
>> +         newAdaptors = malloc((num_adaptors + 1) * sizeof(XF86VideoAdaptorPtr *));
>
> Why did you delete this comment?

Automated. Wasn't intentional. I'll add it back to the patch before I commit.

Thanks,
Matt


More information about the xorg-devel mailing list