diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-18 19:06:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-18 19:06:51 +0000 |
commit | 83a9f272d8b1d2ec08bc3d5b8fa04d5b8feeb349 (patch) | |
tree | a7bce6e6192eedbeac08f4ab9209b3f7d702bdc3 /input.c | |
parent | 8873c79cbcaf799ca4b371faf24564664aedc850 (diff) |
Missing NULL check.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.49 2008-06-04 19:20:09 nicm Exp $ */ +/* $Id: input.c,v 1.50 2008-06-18 19:06:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -143,7 +143,8 @@ input_start_string(struct input_ctx *ictx, int type) void input_abort_string(struct input_ctx *ictx) { - xfree(ictx->string_buf); + if (ictx->string_buf != NULL) + xfree(ictx->string_buf); ictx->string_buf = NULL; } |