Skip to content

Commit 637c7da

Browse files
committed
Potential memory leak
Fix potential (but very unlikely) memory leak as found by coverity.
1 parent 871d803 commit 637c7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/libmscgen/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3208,11 +3208,11 @@ BGD_DECLARE(void) gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX,
32083208
}
32093209
/* Stretch vectors */
32103210
int *stx = (int *) gdMalloc (sizeof (int) * srcW);
3211-
int *sty = (int *) gdMalloc (sizeof (int) * srcH);
32123211
if (!stx) {
32133212
return;
32143213
}
32153214

3215+
int *sty = (int *) gdMalloc (sizeof (int) * srcH);
32163216
if (!sty) {
32173217
gdFree(stx);
32183218
return;

0 commit comments

Comments
 (0)