You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-f...

36 lines
1.2 KiB

fix from upstream
------------------------------------------------------------------------
r1285 | giraffedata | 2010-09-18 16:13:39 -0400 (Sat, 18 Sep 2010) | 1 line
Fix free of non-allocated memory
Index: converter/ppm/ppmtompeg/param.c
===================================================================
--- converter/ppm/ppmtompeg/param.c (revision 1284)
+++ converter/ppm/ppmtompeg/param.c (revision 1285)
@@ -283,8 +283,8 @@ GetFrameRate(const char * const p)
static void
-mergeInputSource(struct inputSource * const baseSourceP,
- struct inputSource * const addedSourceP) {
+mergeInputSource(struct inputSource * const baseSourceP,
+ const struct inputSource * const addedSourceP) {
unsigned int i;
@@ -294,12 +294,6 @@ mergeInputSource(struct inputSource * co
for (i = 0; i < addedSourceP->numInputFileEntries; ++i)
baseSourceP->inputFileEntries[baseSourceP->numInputFileEntries++] =
addedSourceP->inputFileEntries[i];
-
- free(addedSourceP);
- /* Note the space allocated for the *addedSourceP input file
- entries themselves is still allocated, and used by
- *baseSourceP.
- */
}