From 11f46c40fc60d5adfc46e1dbf92c0467a3d03581 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sun, 22 May 2011 17:31:37 +0200 Subject: [PATCH] Plug a mem. leak --- simio_tracer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/simio_tracer.c b/simio_tracer.c index e39c8a7..e4540ea 100644 --- a/simio_tracer.c +++ b/simio_tracer.c @@ -154,6 +154,7 @@ static struct simio_device *tracer_create(char **arg_text) tr = malloc(sizeof(*tr)); if (!tr) { pr_error("tracer: couldn't allocate memory"); + free(history); return NULL; }