Skip to content

Commit

Permalink
Fix resource leak in TestMythSystem::auto_cleanup_return_null.
Browse files Browse the repository at this point in the history
Fixes coverity issue 1442079.
  • Loading branch information
linuxdude42 committed Apr 8, 2019
1 parent e4cd50e commit a54dbf5
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -195,6 +195,9 @@ class TestMythSystem: public QObject
MythSystem *ptr = MythSystem::Create(
"sleep 10", kMSAutoCleanup | kMSRunBackground);
QVERIFY(!ptr);

// Shouldn't return a pointer, but if it does, delete it.
delete ptr;
}

// TODO kMSDisableUDPListener -- disable MythMessage UDP listener
Expand Down

0 comments on commit a54dbf5

Please sign in to comment.