Bug 1208405 - [CID 222543] Passing freed pointer _this->list as an argument to PR_Free, r=mt
authorFranziskus Kiefer <franziskuskiefer@gmail.com>
Tue, 20 Oct 2015 14:43:06 +0200
changeset 11688 4398610ede4721150a9c4837857b33e7852691cb
parent 11687 26b8dc7b51d36d9081b63f5dc3b0c8675e123d78
child 11689 4f05e85715d7a29b6ebaa836175234561f1072d6
push id829
push usermartin.thomson@gmail.com
push dateTue, 20 Oct 2015 16:51:36 +0000
reviewersmt
bugs1208405, 222543
Bug 1208405 - [CID 222543] Passing freed pointer _this->list as an argument to PR_Free, r=mt
cmd/modutil/install-ds.c
--- a/cmd/modutil/install-ds.c
+++ b/cmd/modutil/install-ds.c
@@ -1465,17 +1465,16 @@ Pk11Install_Pair_new(char *_key, Pk11Ins
 }
 
 /****************************************************************************/
 void
 Pk11Install_Pair_delete(Pk11Install_Pair* _this)
 {
 	PR_Free(_this->key);
 	Pk11Install_ValueList_delete(_this->list);
-	PR_Free(_this->list);
 }
 
 /*************************************************************************/
 void
 Pk11Install_Pair_Print(Pk11Install_Pair* _this, int pad)
 {
 	while (_this) {
 		/*PAD(pad); printf("**Pair\n");