tests: Use drmFreeVersion() instead of drmFree()

drmFreeVersion() frees the memory allocated for the name, date and desc
fields in addition to that for the struct _drmVersion.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
main
Thierry Reding 2014-02-19 14:45:30 +01:00
parent 303ff26311
commit d4083dc762
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}