1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-*ctl: fix label leak

This commit is contained in:
Derek Dai 2017-01-19 18:59:51 +08:00
parent 14041bd968
commit 7ea9305172
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -900,6 +900,9 @@ static int ctl_wifi_parse_object(struct ctl_wifi *w,
} }
} }
free(label);
label = NULL;
r = sd_bus_path_decode(t, r = sd_bus_path_decode(t,
"/org/freedesktop/miracle/wifi/peer", "/org/freedesktop/miracle/wifi/peer",
&label); &label);