diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-01-27 14:10:29 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-01-27 14:10:29 -0600 |
commit | bb09f350b8beaa7c68d898131c54f52722e16522 (patch) | |
tree | 5c37e581a6bff82ddc8791e6f62c94426fbc3304 /misc/tools/kconfig-frontends/libs/parser/lconf.c | |
parent | 97b98200709f76e968fe73dd5a7ed0c43e4084db (diff) | |
download | nuttx-bb09f350b8beaa7c68d898131c54f52722e16522.tar.gz nuttx-bb09f350b8beaa7c68d898131c54f52722e16522.tar.bz2 nuttx-bb09f350b8beaa7c68d898131c54f52722e16522.zip |
Update kconfig-frontends to 3.12.0
Diffstat (limited to 'misc/tools/kconfig-frontends/libs/parser/lconf.c')
-rw-r--r-- | misc/tools/kconfig-frontends/libs/parser/lconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/tools/kconfig-frontends/libs/parser/lconf.c b/misc/tools/kconfig-frontends/libs/parser/lconf.c index 3e7aca0ef..24aa3491c 100644 --- a/misc/tools/kconfig-frontends/libs/parser/lconf.c +++ b/misc/tools/kconfig-frontends/libs/parser/lconf.c @@ -811,7 +811,7 @@ static void zconf_endfile(void); static void new_string(void) { - text = malloc(START_STRSIZE); + text = xmalloc(START_STRSIZE); text_asize = START_STRSIZE; text_size = 0; *text = 0; @@ -833,7 +833,7 @@ static void append_string(const char *str, int size) static void alloc_string(const char *str, int size) { - text = malloc(size + 1); + text = xmalloc(size + 1); memcpy(text, str, size); text[size] = 0; } @@ -2357,7 +2357,7 @@ void zconf_initscan(const char *name) exit(1); } - current_buf = malloc(sizeof(*current_buf)); + current_buf = xmalloc(sizeof(*current_buf)); memset(current_buf, 0, sizeof(*current_buf)); current_file = file_lookup(name); @@ -2368,7 +2368,7 @@ void zconf_nextfile(const char *name) { struct file *iter; struct file *file = file_lookup(name); - struct buffer *buf = malloc(sizeof(*buf)); + struct buffer *buf = xmalloc(sizeof(*buf)); memset(buf, 0, sizeof(*buf)); current_buf->state = YY_CURRENT_BUFFER; |