Plug a mem. leak
This commit is contained in:
parent
bffe2b26c1
commit
11f46c40fc
|
@ -154,6 +154,7 @@ static struct simio_device *tracer_create(char **arg_text)
|
||||||
tr = malloc(sizeof(*tr));
|
tr = malloc(sizeof(*tr));
|
||||||
if (!tr) {
|
if (!tr) {
|
||||||
pr_error("tracer: couldn't allocate memory");
|
pr_error("tracer: couldn't allocate memory");
|
||||||
|
free(history);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue