Commit 74858d643c7542c664ea050d3290d29f99f7c091
Do not leak array from list of errors
Author: xaizek
Author date (UTC): 2015-07-09 16:00
Committer name: xaizek
Committer date (UTC): 2015-07-09 16:00
Parent(s): 88fdfe3757af41d64429e79217d9ac27ff559cc6
Signing key:
Tree: 843259db234b1ff61bb55bb05d70553165c6efc6
File src/io/ioe.c changed (mode: 100644) (index 5a3f5d7b4..04e155140) |
19 |
19 |
#include "ioe.h" |
#include "ioe.h" |
20 |
20 |
|
|
21 |
21 |
#include <stddef.h> /* NULL size_t */ |
#include <stddef.h> /* NULL size_t */ |
|
22 |
|
#include <stdlib.h> /* free() */ |
22 |
23 |
|
|
23 |
24 |
#include "private/ioe.h" |
#include "private/ioe.h" |
24 |
25 |
|
|
|
... |
... |
ioe_errlst_free(ioe_errlst_t *elist) |
43 |
44 |
{ |
{ |
44 |
45 |
ioe_err_free(&elist->errors[i]); |
ioe_err_free(&elist->errors[i]); |
45 |
46 |
} |
} |
|
47 |
|
free(elist->errors); |
46 |
48 |
} |
} |
47 |
49 |
|
|
48 |
50 |
/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */ |
/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */ |