Skip to content
Commit 957d6bf6 authored by Joe Perches's avatar Joe Perches Committed by Geert Uytterhoeven
Browse files

swim: Release memory region after incorrect return/goto



The code uses

	return foo;
	goto err_type;

when instead the form should have been

	ret = foo;
	goto err_type;

Here this causes a useful release_mem_region to be skipped.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarLaurent Vivier <Laurent@Vivier.EU>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 378f7ca6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment