projects
/
platform
/
core
/
ml
/
aitt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b08416
)
revise DiscoveryBlob
author
Hansol Lee
<hansolu.lee@samsung.com>
Thu, 16 Feb 2023 10:26:07 +0000
(19:26 +0900)
committer
Hansol Lee
<hansolu.lee@samsung.com>
Thu, 9 Mar 2023 02:21:24 +0000
(11:21 +0900)
I added deleter to completely delete data
common/AittDiscovery.cc
patch
|
blob
|
history
diff --git
a/common/AittDiscovery.cc
b/common/AittDiscovery.cc
index
db41be4
..
ecebce8
100644
(file)
--- a/
common/AittDiscovery.cc
+++ b/
common/AittDiscovery.cc
@@
-173,7
+173,7
@@
void AittDiscovery::PublishDiscoveryMsg()
}
AittDiscovery::DiscoveryBlob::DiscoveryBlob(const void *msg, int length)
- : len(length), data(new char[len])
+ : len(length), data(new char[len]
, [](char *p) { delete[] p; }
)
{
memcpy(data.get(), msg, length);
}