Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2d74937 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

regulator: mem-acc: Fix possible memory leak



Fix the memory leak errors found in the code with freeing
the dynamically allocated memory.

CRs-Fixed: 984895
Change-Id: I6f6048394f984393615726c093a6491ef1870dad
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 73135edf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -754,6 +754,7 @@ static int mem_acc_reg_addr_val_dump(struct mem_acc_regulator *mem_acc_vreg,
		pr_debug("%s\n", buf);
	}

	kfree(buf);
	return 0;
}