summaryrefslogtreecommitdiff
path: root/src/dbus.c
diff options
context:
space:
mode:
authorSimon Chopin <87005181+schopin-pro@users.noreply.github.com>2021-07-21 10:27:45 +0200
committerLukas Märdian <slyon@ubuntu.com>2021-08-04 13:39:20 +0200
commita5bec5b5ca3b7cea4bf68b130d1cc1f84fe7f2df (patch)
tree998ab219d0542a9712c257a303bd1fa6cc6a7f06 /src/dbus.c
parent356d06fd05ff446004886745cdba55a9de7c9883 (diff)
parse: handle_routes: clean up the route on error (#219)
This patch reworks the single route processing to only append the parsed route to the interface when it has been fully validated, and use a single error path otherwise. This allows us to locally control the cleanup and freeing of the allocated route. The previous version could indeed leak if process_mapping returned an error (and that's assuming that the interface cleanup process would free up the routes already assigned, which I haven't checked).
Diffstat (limited to 'src/dbus.c')
0 files changed, 0 insertions, 0 deletions