Commit c695c516 authored by Johan Ström's avatar Johan Ström

Fix invalid delete

unique_ptr<char> uses regular deleter, not delete[]
parent db516c61
Pipeline #449 passed with stage
in 2 minutes and 45 seconds
......@@ -8,7 +8,7 @@
#include <uuid/uuid.h>
std::string agocontrol::utils::generateUuid() {
std::unique_ptr<char> name(new char[38]);
std::unique_ptr<char[]> name(new char[38]);
uuid_t tmpuuid;
uuid_unparse(tmpuuid, name.get());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment