projects
/
platform
/
core
/
api
/
vine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf298a
)
Use delete for memory allocated by new (2)
25/256625/1
author
Cheoleun Moon
<chleun.moon@samsung.com>
Thu, 8 Apr 2021 07:11:21 +0000
(16:11 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Thu, 8 Apr 2021 07:11:26 +0000
(16:11 +0900)
Change-Id: I7be8a20c08eefaf188a764a8f64a0cc26325081a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
plugins/dns-sd/dns-sd-plugin.cpp
patch
|
blob
|
history
diff --git
a/plugins/dns-sd/dns-sd-plugin.cpp
b/plugins/dns-sd/dns-sd-plugin.cpp
index
9ce56da
..
b6f744d
100755
(executable)
--- a/
plugins/dns-sd/dns-sd-plugin.cpp
+++ b/
plugins/dns-sd/dns-sd-plugin.cpp
@@
-485,7
+485,7
@@
void dns_sd_deinit(void *plugin_handle)
it = dns_sd_handle->sdref_map.erase(it);
}
-
free(dns_sd_handle)
;
+
delete dns_sd_handle
;
}
vine_disc_error dns_sd_publish(void *plugin_handle, const char *service_type,