test_objagg: Fix potential memory leak in error handling
authorAditya Pakki <pakki001@umn.edu>
Fri, 12 Jun 2020 20:01:54 +0000 (15:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2020 20:32:11 +0000 (13:32 -0700)
commita6379f0ad6375a707e915518ecd5c2270afcd395
tree42e1b1dc6f58b7899b744b4892e62cd2d921da82
parentadaff6d906d74dfe34d44fd18d5a7596d293df44
test_objagg: Fix potential memory leak in error handling

In case of failure of check_expect_hints_stats(), the resources
allocated by objagg_hints_get should be freed. The patch fixes
this issue.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_objagg.c