From 8494df92c31f0f496d28f17fa5d8339ed3c2361d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 8 Apr 2021 14:29:44 +0100 Subject: Fix gdevescv.c operation with Memento. gdevescv.c used strdup, which wasn't previously caught by Memento. Accordingly it was careful to release the memory using 'unvectored_free' (i.e. free before Memento got involved). Now that Memento has been updated to catch strdup this is not required (and indeed causes problems). Accordingly, simplify the code. --- contrib/eplaser/gdevescv.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'contrib') diff --git a/contrib/eplaser/gdevescv.c b/contrib/eplaser/gdevescv.c index c7bd29e18..45bc13754 100644 --- a/contrib/eplaser/gdevescv.c +++ b/contrib/eplaser/gdevescv.c @@ -35,13 +35,6 @@ #include /* for abs() and free */ -/* Get this definition in before we read memento.h */ -static void -unvectored_free(void *x) -{ - free(x); -} - #if ( 6 > GS_VERSION_MAJOR ) #include @@ -1032,8 +1025,7 @@ escv_beginpage(gx_device_vector * vdev) if (sysname) { lputs(s, sysname ); - /* Carefully avoid memento interfering here. */ - unvectored_free(sysname); + free(sysname); sysname = NULL; } } -- cgit v1.2.1