good catch

good for merge

regards
-steve

On Sun, 2009-10-25 at 11:57 +1300, Angus Salkeld wrote:
> At conditional (2): "res == 4294967295" taking true path
> 415           if (res == -1) {
> Event leaked_storage: Returned without freeing storage "zcb_mapped"
> Also see events: [alloc_fn][var_assign]
> 416                   return (-1);
> 417           }
> 
> Signed-off-by: Angus Salkeld <[email protected]>
> ---
>   exec/coroipcs.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/exec/coroipcs.c b/exec/coroipcs.c
> index 21042a7..065a355 100644
> --- a/exec/coroipcs.c
> +++ b/exec/coroipcs.c
> @@ -413,6 +413,7 @@ static inline int zcb_alloc (
>               size,
>               addr);
>       if (res == -1) {
> +             free (zcb_mapped);
>               return (-1);
>       }
> 

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to