From de02aad9d230b317c9412cfce444a469778fad0c Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 21 Jul 2020 22:01:37 +0000 Subject: Fix double-free crash with -font git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3898 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpbmfont2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libpbmfont2.c') diff --git a/lib/libpbmfont2.c b/lib/libpbmfont2.c index 1560b407..6007d7f6 100644 --- a/lib/libpbmfont2.c +++ b/lib/libpbmfont2.c @@ -1196,8 +1196,10 @@ pbm_loadbdffont2select(const char * const filename, The returned object is in new malloc'ed storage, in many pieces. When done with, destroy with pbm_destroybdffont2(). ------------------------------------------------------------------------------*/ + The returned object refers to *selectorP, so that must continue to exist + until you call pbm_destroybdffont2(). +-----------------------------------------------------------------------------*/ FILE * ifP; Readline readline; struct font2 * font2P; -- cgit 1.4.1