mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 22:32:43 +08:00
Update daemon.cpp
[../openalpr-master/src/daemon.cpp:213]: (error) Memory leak: thread_upload [../openalpr-master/src/daemon.cpp:216]: (error) Memory leak: thread_recognize Found by https://github.com/bryongloden/cppcheck
This commit is contained in:

committed by
GitHub

parent
655cf99323
commit
426d863f90
@@ -211,10 +211,10 @@ int main( int argc, const char** argv )
|
||||
udata->upload_url = daemon_config.upload_url;
|
||||
tthread::thread* thread_upload = new tthread::thread(dataUploadThread, (void*) udata );
|
||||
}
|
||||
|
||||
delete(thread_upload);
|
||||
break;
|
||||
}
|
||||
|
||||
delete(thread_recognize);
|
||||
// Parent process will continue and spawn more children
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user