state: backend_bucket_circular: Do not leak memory
This ports the following barebox commit:

| commit af18710
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date:   Wed Apr 19 10:13:58 2017 +0200
|
|     state: backend_bucket_circular: Do not leak memory
|
|     buf was just allocated, free it before returning an error.
|
|     Reported-by: Sam Ravnborg <sam@ravnborg.org>
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent 97ab800 commit 02ca39f0ff1cf5bb32df1dcf744cb19a052eef7b
@Ulrich Ölmann Ulrich Ölmann authored on 18 Dec 2018
Roland Hieber committed on 7 Jan 2019
Showing 1 changed file
View
src/barebox-state/backend_bucket_circular.c