From: Brian Paul Date: Mon, 1 Sep 2008 19:10:23 +0000 (-0600) Subject: mesa: use CALLOC instead of MALLOC to fix valgrind warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39e8860e45fae2968917bdb7fe572c8793bbce30;p=mesa.git mesa: use CALLOC instead of MALLOC to fix valgrind warning --- diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index d62661e2b52..af2feb35538 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -77,7 +77,7 @@ lookup_arrayobj(GLcontext *ctx, GLuint id) struct gl_array_object * _mesa_new_array_object( GLcontext *ctx, GLuint name ) { - struct gl_array_object *obj = MALLOC_STRUCT(gl_array_object); + struct gl_array_object *obj = CALLOC_STRUCT(gl_array_object); if (obj) _mesa_initialize_array_object(ctx, obj, name); return obj;