File: fix-double-free.patch

package info (click to toggle)
fuse-emulator-utils 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,592 kB
  • sloc: sh: 11,498; ansic: 11,083; cpp: 1,121; makefile: 167
file content (16 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Sergio BaldovĂ­ <serbalgi@gmail.com>
Subject: Fix double-free bug
Origin: https://sourceforge.net/p/fuse-emulator/fuse-utils/ci/659214ec558278c3f3ce7ff54d2c1b37752a3ad6/
Index: fuse-emulator-utils/rzxcheck.c
===================================================================
--- fuse-emulator-utils.orig/rzxcheck.c
+++ fuse-emulator-utils/rzxcheck.c
@@ -180,7 +180,7 @@ main( int argc, char **argv )
 
   free( buffer );
 
-  libspectrum_rzx_free( rzx ); free( rzx );
+  libspectrum_rzx_free( rzx );
   libspectrum_signature_free( &signature );
 
   if( error == LIBSPECTRUM_ERROR_SIGNATURE ) {