summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2015-10-20 14:40:40 +0200
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2015-10-20 14:40:40 +0200
commitb170f9e9c6f5365aa4e4e6cd69eac098336c5eab (patch)
tree78500cc33559a01ec1a7660d5c711b4e40897470
parent301e34510fbc41dd8e28c3b72e0aeb9abfaf3975 (diff)
downloadnss-hg-b170f9e9c6f5365aa4e4e6cd69eac098336c5eab.tar.gz
Bug 1216505 - [CID 1327945] leaked_storage: Variable label going out of scope leaks the storage it points to, r=mt
-rw-r--r--lib/softoken/legacydb/lgattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/softoken/legacydb/lgattr.c b/lib/softoken/legacydb/lgattr.c
index 7c80c568e..429ef8726 100644
--- a/lib/softoken/legacydb/lgattr.c
+++ b/lib/softoken/legacydb/lgattr.c
@@ -1776,6 +1776,7 @@ lg_SetAttributeValue(SDB *sdb, CK_OBJECT_HANDLE handle,
if (rv != SECSuccess) {
crv = CKR_DEVICE_ERROR;
}
+ PORT_Free(label);
}
lg_DestroyObjectCache(obj);