From 3413d878a7b1a37ff362ddfa9141349e73af917a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 26 Apr 2016 22:40:43 +0200 Subject: Ensure that failure does not result in memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- zahl.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'zahl.h') diff --git a/zahl.h b/zahl.h index 2df05e7..aca34f4 100644 --- a/zahl.h +++ b/zahl.h @@ -16,16 +16,7 @@ -/* This structure should be considered opaque. */ -typedef struct { - int sign; -#if INT_MAX != LONG_MAX - int padding__; -#endif - size_t used; - size_t alloced; - zahl_char_t *chars; -} z_t[1]; +typedef struct zahl z_t[1]; -- cgit v1.2.3-70-g09d2