summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-02-19 14:45:30 +0100
committerThierry Reding <treding@nvidia.com>2014-04-17 16:21:47 +0200
commitd4083dc762a2974c35ecd16be995272bbb6d57b4 (patch)
treeb2cb107dad4a7caf9955cf5e443d0ef6f0725070
parent303ff26311dc5efdf28676be34d86f501699acf3 (diff)
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>
-rw-r--r--tests/getversion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/getversion.c b/tests/getversion.c
index 53d1d354..bcec4699 100644
--- a/tests/getversion.c
+++ b/tests/getversion.c
@@ -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;
}