Skip to contentSkip to conversation

tests: Use drmFreeVersion() instead of drmFree()

PATCH In review Thierry Reding 2 participants 2 messages Feb 19, 2014

lore
Share & tools
lore
#0 lore raw

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.

---
 tests/getversion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/getversion.c +1 -1
index 53d1d354ea16..bcec46999140 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel