localalloc: Add gs_free_error
Fix signed/unsigned comparision warnings