From 6b361c028b5ad931b61df86fae570f3ef9f41c15 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 5 Apr 2007 14:19:56 -0700 Subject: Coverity #1086: Double free of pointer "*listenObjsRet" Same bug, different function. --- src/listenwk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/listenwk.c b/src/listenwk.c index f97aa44..26bb6e0 100644 --- a/src/listenwk.c +++ b/src/listenwk.c @@ -127,8 +127,10 @@ char *errorStringRet; free ((char *) (*listenObjsRet)[j]); free ((char *) *listenObjsRet); + *listenObjsRet = NULL; status = 0; + break; } else { -- cgit v1.2.3