Project

General

Profile

Actions

Bug #511

closed

json protocol: memory leak when discarding is-info packets

Added by Alina Lenk 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
General
Target version:
Start date:
04/27/2024
Due date:
% Done:

0%

Estimated time:

Description

When an is-info packet contains no changes and is discarded, the send function returns early without freeing the packet's JSON object.

Either need to introduce a SEND_PACKET_DISCARD macro in packets[_json].h and use it to handle this, or delay SEND_PACKET_START until after we know the packet won't be discarded (which would reduce the simplicity gains from #510).


Files

Actions

Also available in: Atom PDF