aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-18 23:02:00 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-18 23:02:00 +0000
commita1cd15ddde64bcaff9530eba036db18d137b55e6 (patch)
tree750fec3cf497e2b94f764c590074342282c34c76
parent8e8de490462cef4470f63c448a19ba314bf31690 (diff)
parentdb325961118ca9c1b2179698d4c69b568b04470c (diff)
downloadiptables-android11-qpr1-s2-release.tar.gz
Change-Id: I24cf691d4c2cddc540a850e79b204f52a1faefd8
-rw-r--r--libxtables/xtables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index 895f6988..9c5827e5 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -757,6 +757,7 @@ xtables_find_target(const char *name, enum xtables_tryload tryload)
for (ptr = xtables_targets; ptr; ptr = ptr->next) {
if (extension_cmp(name, ptr->name, ptr->family)) {
+#if 0 /* Code block below causes memory leak. (Bugs 162925719 and 168688680) */
struct xtables_target *clone;
/* First target of this type: */
@@ -772,6 +773,7 @@ xtables_find_target(const char *name, enum xtables_tryload tryload)
clone->next = clone;
ptr = clone;
+#endif
break;
}
}