mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core/service: fix memleak of USBFunctionStrings and USBFunctionDescriptors
oss-fuzz #6892.
This commit is contained in:
@@ -396,6 +396,9 @@ static void service_done(Unit *u) {
|
||||
|
||||
s->bus_name_owner = mfree(s->bus_name_owner);
|
||||
|
||||
s->usb_function_descriptors = mfree(s->usb_function_descriptors);
|
||||
s->usb_function_strings = mfree(s->usb_function_strings);
|
||||
|
||||
service_close_socket_fd(s);
|
||||
s->peer = socket_peer_unref(s->peer);
|
||||
|
||||
|
||||
3
test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6892
Normal file
3
test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6892
Normal file
@@ -0,0 +1,3 @@
|
||||
service
|
||||
[Service]
|
||||
USBFunctionStrings=/
|
||||
@@ -33,4 +33,5 @@ fuzz_regression_tests = '''
|
||||
fuzz-unit-file/oss-fuzz-6885
|
||||
fuzz-unit-file/oss-fuzz-6886
|
||||
fuzz-unit-file/oss-fuzz-6917
|
||||
fuzz-unit-file/oss-fuzz-6892
|
||||
'''.split()
|
||||
|
||||
Reference in New Issue
Block a user