Blame SOURCES/fontforge-20170731-covscan-issue-fix-revertbad.patch

b512da
diff -Naurp a/fontforge/bitmapchar.c b/fontforge/bitmapchar.c
b512da
--- a/fontforge/bitmapchar.c	2019-05-29 23:01:41.558539879 +0000
b512da
+++ b/fontforge/bitmapchar.c	2019-05-30 01:56:44.866932108 +0000
b512da
@@ -372,7 +372,7 @@ void SFReplaceFontnameBDFProps(SplineFon
b512da
 	}
b512da
     }
b512da
     free(bpt);
b512da
-    free(pt);
b512da
+    //free(pt);
b512da
 }
b512da
 
b512da
 BDFProperties *BdfPropsCopy(BDFProperties *props, int cnt ) {
b512da
diff -Naurp a/fontforge/featurefile.c b/fontforge/featurefile.c
b512da
--- a/fontforge/featurefile.c	2019-05-29 23:01:41.562539887 +0000
b512da
+++ b/fontforge/featurefile.c	2019-05-30 01:56:44.867932111 +0000
b512da
@@ -4648,7 +4648,7 @@ static FPST *fea_markedglyphs_to_fpst(st
b512da
 	}
b512da
 	r->lookup_cnt = lc;
b512da
     }
b512da
-    free(bcovers);
b512da
+    //free(bcovers);
b512da
 return( fpst );
b512da
 }
b512da
 
b512da
@@ -7101,7 +7101,7 @@ static struct feat_item *fea_ApplyFeatur
b512da
     }
b512da
     if ( f!=NULL && f->type == ft_feat_end )
b512da
 	f = f->next;
b512da
-    free(sl);
b512da
+    //free(sl); //???
b512da
 return( f );
b512da
 }
b512da
 
b512da
diff -Naurp a/fontforge/plugins.c b/fontforge/plugins.c
b512da
--- a/fontforge/plugins.c	2019-05-29 23:01:41.571539906 +0000
b512da
+++ b/fontforge/plugins.c	2019-05-30 01:56:44.869932118 +0000
b512da
@@ -35,7 +35,7 @@
b512da
 int LoadPlugin(const char *dynamic_lib_name) {
b512da
     lt_dlhandle plugin;
b512da
     plugin = load_plugin(dynamic_lib_name, LogError);
b512da
-    free(plugin);
b512da
+    //free(plugin);
b512da
     return (plugin != NULL);
b512da
 }
b512da
 
b512da
diff -Naurp a/fontforge/psread.c b/fontforge/psread.c
b512da
--- a/fontforge/psread.c	2019-05-29 23:01:41.573539911 +0000
b512da
+++ b/fontforge/psread.c	2019-05-30 01:56:44.951932373 +0000
b512da
@@ -4690,6 +4690,6 @@ SplineChar *PSCharStringToSplines(uint8
b512da
     if ( name!=NULL && strcmp(name,".notdef")!=0 )
b512da
 	ret->widthset = true;
b512da
     free(pending_hm);
b512da
-    free(pt);
b512da
+    //free(pt);
b512da
 return( ret );
b512da
 }
Pablo Greco 170d56
diff -Naurp a/fontforge/sfd.c b/fontforge/sfd.c
b512da
--- a/fontforge/sfd.c	2019-05-29 23:01:41.583539931 +0000
b512da
+++ b/fontforge/sfd.c	2019-05-30 01:56:44.962932407 +0000
Pablo Greco 170d56
@@ -8302,7 +8302,7 @@ bool SFD_GetFontMetaData( FILE *sfd,
Pablo Greco 170d56
         //
Pablo Greco 170d56
         return false;
Pablo Greco 170d56
     }
Pablo Greco 170d56
-    free(kc);
Pablo Greco 170d56
+    //free(kc);
Pablo Greco 170d56
     return true;
Pablo Greco 170d56
 }
Pablo Greco 170d56
 
b512da
@@ -8746,7 +8746,7 @@ static SplineFont *SFD_GetFont( FILE *sf
b512da
 	    else if ( lastnamedinstance !=NULL )
b512da
 		lastnamedinstance->names = names;
b512da
 	    pushedbacktok = true;
b512da
-	    free(names);
b512da
+	    //free(names);
b512da
 	} else if ( strmatch(tok,"MMCDV:")==0 ) {
b512da
 	    MMSet *mm = sf->mm;
b512da
 	    if ( mm!=NULL )
b512da
@@ -8870,7 +8870,7 @@ exit( 1 );
b512da
     if (sf->map == NULL) sf->map = EncMapNew(sf->glyphcnt,sf->glyphcnt,&custom);
b512da
 
b512da
     SFDFixupUndoRefs(sf);
b512da
-    free(remap);
b512da
+    //free(remap);
b512da
 return( sf );
b512da
 }
b512da
 
b512da
diff -Naurp a/fontforge/ttfspecial.c b/fontforge/ttfspecial.c
b512da
--- a/fontforge/ttfspecial.c	2019-05-29 23:01:41.594539954 +0000
b512da
+++ b/fontforge/ttfspecial.c	2019-05-30 01:56:45.001932528 +0000
b512da
@@ -1356,7 +1356,7 @@ static void pfed_read_glyph_layer(FILE *
b512da
 	}
b512da
     }
b512da
     free(contours);
b512da
-    free(cur);
b512da
+    //free(cur);
b512da
 }
b512da
 
b512da
 static void pfed_readguidelines(FILE *ttf,struct ttfinfo *info,uint32 base) {