Merge branch 'fix_possible_memory_leak' of github.com:haraldreif/paho.mqtt.c into haraldreif-fix_possible_memory_leak

This commit is contained in:
Ian Craggs 2025-01-07 12:26:23 +00:00
commit c8b915cd75
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2024 IBM Corp., Ian Craggs and others
* Copyright (c) 2009, 2025 IBM Corp., Ian Craggs and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
@ -2378,6 +2378,10 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
m->c->connected = 0; /* don't send disconnect packet back */
nextOrClose(m, discrc, "Received disconnect");
}
else
{
Log(LOG_ERROR, -1, "An unexpected packet type %u has been received", pack->header.bits.type);
}
}
}
}