[PATCH 4 of 5] Free secitem.data and not just the list

Wald Commits scm-commit at wald.intevation.org
Tue Aug 26 17:04:42 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409065430 -7200
# Node ID 171124737c762f9df85c7a68854ba2c71b21fc36
# Parent  56ca8f2fd4330494eaa9f626f24ba2db46561645
Free secitem.data and not just the list.

diff -r 56ca8f2fd433 -r 171124737c76 cinst/nss-secitemlist.c
--- a/cinst/nss-secitemlist.c	Tue Aug 26 17:03:18 2014 +0200
+++ b/cinst/nss-secitemlist.c	Tue Aug 26 17:03:50 2014 +0200
@@ -29,6 +29,8 @@
     {
       oldlelt = *list;
       *list = oldlelt->next;
+      if (oldlelt->item->data)
+        free(oldlelt->item->data);
       free(oldlelt->item);
       free(oldlelt);
     }


More information about the Trustbridge-commits mailing list