libDtHelp: Cov 88119
authorPeter Howkins <flibble@users.sf.net>
Fri, 10 Aug 2018 23:57:11 +0000 (00:57 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 10 Aug 2018 23:57:11 +0000 (00:57 +0100)
cde/lib/DtHelp/AccessSDL.c

index 716f88f307d2b28703333324aaae6def0798d42e..8d6d470fc03ab9b25edbd93ced283e39adb26376 100644 (file)
@@ -415,7 +415,10 @@ AsciiKeyword (
                                (wchar_t *) _DtCvStringOfStringSeg(p_list),
                                        newLen + 1);
                if ((size_t) -1 == newLen)
+                 {
+                   free(goodStr);
                    return NULL;
+                 }
 
                len += newLen;
          }