tests: Use drmFreeVersion() instead of drmFree()
PATCH 1/1 tests: Use drmFreeVersion() instead of drmFree()
From: Thierry Reding <[email protected]>
drmFreeVersion() frees the memory allocated for the name, date and desc fields in addition to that for the struct _drmVersion.
Signed-off-by Thierry Reding <[email protected]>
--- tests/getversion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/getversion.c +1 -1
@@ -43,7 +43,7 @@ int main(int argc, char **argv)assert (strlen (v->desc) !=0 );if (strcmp (v->name,"i915" ) ==0 )assert (v->version_major >=1 ); -drmFree (v); +drmFreeVersion (v);close (fd);return 0 ; }
Signature · 1 line
1.8.4.2
Quoted 6 lines · Thierry Reding
From: Thierry Reding <[email protected]>
drmFreeVersion()frees the memory allocated for the name, date and desc fields in addition to that for the struct_drmVersion.Signed-off-by Thierry Reding <[email protected]>
Reviewed-by Eric Anholt <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel