Message ID | 1392824575-7064-2-git-send-email-thierry.reding@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Thierry Reding <thierry.reding@gmail.com> writes: > From: Thierry Reding <treding@nvidia.com> > > 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 <treding@nvidia.com> Reviewed-by: Eric Anholt <eric@anholt.net>
diff --git a/tests/getversion.c b/tests/getversion.c index 53d1d354ea16..bcec46999140 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; }