Skip to content

Commit 0c05bc9

Browse files
authored
Merge pull request doxygen#11611 from albert-github/feature/bug_coverity_20250609
Potential memory leak
2 parents a153ed0 + 637c7da commit 0c05bc9

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)