diff options
author | Julian Smith <jules@op59.net> | 2019-11-29 14:40:47 +0000 |
---|---|---|
committer | Julian Smith <jules@op59.net> | 2019-11-29 14:40:47 +0000 |
commit | 8636935ac086f56464f0541ed735f1016f2c3895 (patch) | |
tree | 18c99920762b25d110a21f091c1e0dbbfa8f7498 /contrib/opvp | |
parent | a3f284624a68dcb1ecb72dcf307b42d194e78de1 (diff) | |
download | ghostpdl-8636935ac086f56464f0541ed735f1016f2c3895.tar.gz |
Coverity 94659: removed cp_num - was allocated but never actually used.
Diffstat (limited to 'contrib/opvp')
-rw-r--r-- | contrib/opvp/gdevopvp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/contrib/opvp/gdevopvp.c b/contrib/opvp/gdevopvp.c index ccbd63ba0..115b3f265 100644 --- a/contrib/opvp/gdevopvp.c +++ b/contrib/opvp/gdevopvp.c @@ -4835,7 +4835,6 @@ opvp_vector_dopath( int i; int pop = 0; int npoints = 0; - int *cp_num = NULL; _fPoint *points = NULL; opvp_point_t *opvp_p = NULL; _fPoint current; @@ -4914,11 +4913,6 @@ opvp_vector_dopath( break; case gs_pe_curveto: /* npoints */ - if (!cp_num) - cp_num = calloc(sizeof(int), 2); - cp_num[0] = npoints; - cp_num[1] = 0; - /* call BezierPath */ if (apiEntry->opvpBezierPath) { r = apiEntry->opvpBezierPath( @@ -4940,7 +4934,6 @@ opvp_vector_dopath( /* reset */ npoints = 1; - if (cp_num) free(cp_num), cp_num = NULL; points = realloc(points, sizeof(_fPoint)); points[0] = current; #endif @@ -5068,7 +5061,6 @@ opvp_vector_dopath( #ifdef OPVP_OPT_MULTI_PATH if (points) free(points); if (opvp_p) free(opvp_p); - if (cp_num) free(cp_num); #endif return ecode; } |