summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2018-03-13 12:43:45 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-04-25 17:59:27 +0900
commitcdb4755ffbe239c712564f9bb06a2350321deaae (patch)
tree3df3fa616eb7a21a02257db4e069d20b30d9440e
parent13c4c8392b954cfbc83ca20738efc9198acf81bb (diff)
downloadlibdrm-cdb4755ffbe239c712564f9bb06a2350321deaae.tar.gz
libdrm-cdb4755ffbe239c712564f9bb06a2350321deaae.tar.bz2
libdrm-cdb4755ffbe239c712564f9bb06a2350321deaae.zip
ipptest: fix memory leak issues during dumping connector
Drung dump_connectors, allocated connector is not freed. Fix the memory leak. Change-Id: Iff4d72bee161e8bbe73d06e5ae82026c8299d949 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--tests/ipptest/fimctest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ipptest/fimctest.c b/tests/ipptest/fimctest.c
index 789bf5aa..f044bb54 100644
--- a/tests/ipptest/fimctest.c
+++ b/tests/ipptest/fimctest.c
@@ -195,8 +195,10 @@ static void dump_connectors(void)
connector->encoders[j]);
printf("\n");
- if (!connector->count_modes)
+ if (!connector->count_modes) {
+ drmModeFreeConnector(connector);
continue;
+ }
printf(" modes:\n");
printf(" name refresh (Hz) hdisp hss hse htot vdisp "