diff options
author | Stef Walter <stef@thewalter.net> | 2004-04-07 18:46:47 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2004-04-07 18:46:47 +0000 |
commit | 08c1eaa8aa0e6928bb5067df417ac785c1bce326 (patch) | |
tree | c2bbc32747b2e5f68228a28aa333746259b77471 /lib/rlib.c | |
parent | 05e57ad8486240d321fb79f474e2dcb9a34579f4 (diff) |
Memory allocation fixes.
Diffstat (limited to 'lib/rlib.c')
-rw-r--r-- | lib/rlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -55,7 +55,11 @@ int rlibInit(r_stream* stream, long options) /* Init the stream for the current session */ if(!vmInit(stream)) + { + free(state); + stream->state = NULL; return R_NOMEM; + } state->options = options; |