mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-02 05:50:43 +08:00
ROUTE(8): Fix memory leak
This commit is contained in:
parent
aba4586df3
commit
00735284b8
@ -411,7 +411,7 @@ fiboptlist_csv(struct rt_ctx *c, const char *arg, struct fibl_head_t *flh)
|
|||||||
int fib, error;
|
int fib, error;
|
||||||
|
|
||||||
if (strcmp("all", arg) == 0) {
|
if (strcmp("all", arg) == 0) {
|
||||||
str = calloc(1, ALLSTRLEN);
|
str0 = str = calloc(1, ALLSTRLEN);
|
||||||
if (str == NULL) {
|
if (str == NULL) {
|
||||||
error = 1;
|
error = 1;
|
||||||
goto fiboptlist_csv_ret;
|
goto fiboptlist_csv_ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user