Module Name:    xsrc
Committed By:   mrg
Date:           Wed Sep 28 02:37:07 UTC 2022

Modified Files:
        xsrc/external/mit/libXtst/dist/src: XRecord.c

Log Message:
re-port christos' fix for memory leak.  also, fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/libXtst/dist/src/XRecord.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/libXtst/dist/src/XRecord.c
diff -u xsrc/external/mit/libXtst/dist/src/XRecord.c:1.7 xsrc/external/mit/libXtst/dist/src/XRecord.c:1.8
--- xsrc/external/mit/libXtst/dist/src/XRecord.c:1.7	Tue Sep 27 18:23:26 2022
+++ xsrc/external/mit/libXtst/dist/src/XRecord.c	Wed Sep 28 02:37:06 2022
@@ -725,13 +725,14 @@ parse_reply_call_callback(
     XRecordInterceptProc callback,
     XPointer		 closure)
 {
+    XRecordInterceptData *data;
     unsigned int current_index;
     int datum_bytes = 0;
 
     /* call the callback for each protocol element in the reply */
     current_index = 0;
     do {
-	XRecordInterceptData *data = alloc_inter_data(info);
+	data = alloc_inter_data(info);
 	if (!data)
 	    return Error;
 

Reply via email to