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
parent
303ff26311
commit
d4083dc762
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue