Re: [PATCH] staging: altera-stapl: Fix memory leak of altera_init()
From: Peter Hüwe
Date: Mon May 30 2011 - 19:11:39 EST
Am Montag 30 Mai 2011, 22:45:04 schrieb Andre Bartke:
> In case kzalloc() fails the second or third time
> we should free the previous allocated resources.
Good catch!
Personally I prefer putting the cleanup logic to the bottom, maybe like this - but that's just personal preference.