bridge-utils/bugfix-avoid-showmacs-memory-leak.patch
2019-09-30 10:33:09 -04:00

19 lines
386 B
Diff

--- a/brctl/brctl_cmd.c 2019-05-08 16:09:02.744000000 +0800
+++ b/brctl/brctl_cmd.c 2019-05-08 17:40:07.252000000 +0800
@@ -407,6 +407,7 @@
if (n < 0) {
fprintf(stderr, "read of forward table failed: %s\n",
strerror(errno));
+ free(fdb);
return 1;
}
@@ -426,6 +427,7 @@
br_show_timer(&f->ageing_timer_value);
printf("\n");
}
+ free(fdb);
return 0;
}