diff options
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: buffer.c,v 1.32 2010/02/09 03:56:28 djm Exp $ */ | 1 | /* $OpenBSD: buffer.c,v 1.33 2013/05/17 00:13:13 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -50,7 +50,7 @@ buffer_free(Buffer *buffer) | |||
50 | if (buffer->alloc > 0) { | 50 | if (buffer->alloc > 0) { |
51 | memset(buffer->buf, 0, buffer->alloc); | 51 | memset(buffer->buf, 0, buffer->alloc); |
52 | buffer->alloc = 0; | 52 | buffer->alloc = 0; |
53 | xfree(buffer->buf); | 53 | free(buffer->buf); |
54 | } | 54 | } |
55 | } | 55 | } |
56 | 56 | ||