Browse Source

TT#14008 fix possible use-after-free on shutdown

Reorder the shutdown cleanup calls so that option strings are freed
last, as they may be used by other components during shutdown cleanup

Change-Id: I297f6d0c3dbbb22c4d34d7866844824c8d97e940
pull/1218/head
Richard Fuchs 5 years ago
parent
commit
23dbe78548
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      recording-daemon/main.c

+ 2
- 4
recording-daemon/main.c View File

@ -314,9 +314,7 @@ int main(int argc, char **argv) {
if (decoding_enabled)
codeclib_free();
options_free();
log_free();
cleanup();
log_free();
options_free();
}

Loading…
Cancel
Save