aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-26 22:40:43 +0200
committerMattias Andrée <maandree@kth.se>2016-04-26 22:40:43 +0200
commit3413d878a7b1a37ff362ddfa9141349e73af917a (patch)
treed15e1795fc697944fb1ba1a2b8a2793db1ac4707 /zahl.h
parentZahl[en] is spelled with upper case Z (diff)
downloadlibzahl-3413d878a7b1a37ff362ddfa9141349e73af917a.tar.gz
libzahl-3413d878a7b1a37ff362ddfa9141349e73af917a.tar.bz2
libzahl-3413d878a7b1a37ff362ddfa9141349e73af917a.tar.xz
Ensure that failure does not result in memory leak
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'zahl.h')
-rw-r--r--zahl.h11
1 files changed, 1 insertions, 10 deletions
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];