From 786bd1e76c6806a4c9272814f9ffe7d901998e4e Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 6 Oct 2019 14:36:17 +0100 Subject: Fix seek command, tested/works relative seek, and hex positioning support --- libbuf/buf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbuf') diff --git a/libbuf/buf.c b/libbuf/buf.c index b62eb13..f2eaee4 100644 --- a/libbuf/buf.c +++ b/libbuf/buf.c @@ -318,6 +318,7 @@ int Buf::realloc(int size) ptr = (char *)::realloc(this->buf, size); if (ptr != NULL) { + free(this->buf); this->buf = ptr; this->buf_size = size; } -- cgit v1.2.3