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:
parent
0362090b73
commit
18624ceeb1
|
@ -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);
|
||||
|
|
|
@ -1590,6 +1590,7 @@ int daemon_run_testhead ( void )
|
|||
else
|
||||
PASSED ;
|
||||
}
|
||||
free(mtcInv_testhead_ptr);
|
||||
|
||||
printf (TESTHEAD_BAR);
|
||||
printf ("| Maintenance Timer Test Head\n");
|
||||
|
|
Loading…
Reference in New Issue