Fix resource leak issue, memory not free

Partial-Bug: 1794903

Change-Id: I5d12f9bec2f089674fc601e4cd297f72daefa6f8
Signed-off-by: Martin Chen <haochuan.z.chen@intel.com>
This commit is contained in:
haochuan 2018-10-18 10:50:37 +08:00 committed by Martin Chen
parent 0362090b73
commit 18624ceeb1
2 changed files with 3 additions and 0 deletions

View File

@ -2059,6 +2059,8 @@ int daemon_run_testhead ( void )
else
PASSED ;
}
free(hbsInv_testhead_ptr);
printf (TESTHEAD_BAR);
printf ("| Heartbeat Service Test Head\n");
printf (TESTHEAD_BAR);

View File

@ -1590,6 +1590,7 @@ int daemon_run_testhead ( void )
else
PASSED ;
}
free(mtcInv_testhead_ptr);
printf (TESTHEAD_BAR);
printf ("| Maintenance Timer Test Head\n");