Fix memory leak when cleaning all shared subs.

pull/1694/head
Roger A. Light 5 years ago
parent ea47f6b0dc
commit 4392320bc3

@ -190,6 +190,7 @@ static void sub__remove_shared_leaf(struct mosquitto__subhier *subhier, struct m
DL_DELETE(shared->subs, leaf);
if(shared->subs == NULL){
HASH_DELETE(hh, subhier->shared, shared);
mosquitto__free(shared->name);
mosquitto__free(shared);
}
mosquitto__free(leaf);

Loading…
Cancel
Save