Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/libXtst/dist/src re-port christos' fix for me...
details: https://anonhg.NetBSD.org/xsrc/rev/7d020113dcb6
branches: trunk
changeset: 7180:7d020113dcb6
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Sep 28 02:37:06 2022 +0000
description:
re-port christos' fix for memory leak. also, fix build.
diffstat:
external/mit/libXtst/dist/src/XRecord.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r e4ef5a8c701c -r 7d020113dcb6 external/mit/libXtst/dist/src/XRecord.c
--- a/external/mit/libXtst/dist/src/XRecord.c Tue Sep 27 18:29:08 2022 +0000
+++ b/external/mit/libXtst/dist/src/XRecord.c Wed Sep 28 02:37:06 2022 +0000
@@ -725,13 +725,14 @@
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;
Home |
Main Index |
Thread Index |
Old Index