Commit Graph

2 Commits

Author SHA1 Message Date
gyonluks
6608c90713 Fix memory issues. Code improvements.
* Use `C.CString()` instead of `C._GoStringPtr()`.
  - Seems like sometimes the pointer returned by `C._GoStringPtr()`
    could already be freed, while work is being done in C code that uses
    the pointer. Using `C.CString()` ensures the C string's lifetime.
* Remove own implementation of `free_network()`; Darknet actually does
  have its own!
* Changed some field names of `YOLONetwork` to make them look more
  consistent.
2018-06-06 23:36:52 +08:00
gyonluks
2213c2f7a5 Initial implementation. 2018-06-05 03:05:11 +08:00