- Subject: [slang-devel] [PATCH 2/2] src/sltoken.c: Fixed a memory leak in compile_byte_compiled_multistring()
 
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
 
- Date: Wed,  6 Nov 2024 14:50:07 +0100
 
---
 src/sltoken.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sltoken.c b/src/sltoken.c
index d142eee..dd3142e 100644
--- a/src/sltoken.c
+++ b/src/sltoken.c
@@ -1999,7 +1999,7 @@ static int compile_byte_compiled_multistring (char *buf)
 	if ((last_type != type) && (type != 0))
 	  {
 	     SLang_verror (SL_INVALID_DATA_ERROR, "Unexpected object (0x%X) encountered in stream", (int)this_type);
-	     return -1;
+	     goto return_error;
 	  }
 	type = last_type;
 
-- 
2.47.0
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.
  [2024 date index]
  [2024 thread index]
  
  [Thread Prev] [Thread Next]
      
  [Date Prev] [Date Next]