mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed memory leaks. And fixes for Web-camera and IP-camera.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
#ifdef _DEBUG
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@ -350,6 +355,10 @@ void visualize(char *cfgfile, char *weightfile)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
||||
#endif
|
||||
|
||||
//test_resize("data/bad.jpg");
|
||||
//test_box();
|
||||
//test_convolutional_layer();
|
||||
|
Reference in New Issue
Block a user