<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/16346">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">VTY: cosmetic: use osmo_talloc_replace_string()<br><br>Change-Id: Id09c7d24b48ddecfa96404c3e75330465a11f830<br>---<br>M src/pcu_vty.c<br>1 file changed, 2 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/46/16346/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/pcu_vty.c b/src/pcu_vty.c</span><br><span>index 1f46707..afc8a9b 100644</span><br><span>--- a/src/pcu_vty.c</span><br><span>+++ b/src/pcu_vty.c</span><br><span>@@ -5,6 +5,7 @@</span><br><span> #include <stdlib.h></span><br><span> #include <string.h></span><br><span> #include <osmocom/core/tdef.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/core/utils.h></span><br><span> #include <osmocom/vty/tdef_vty.h></span><br><span> #include <osmocom/vty/logging.h></span><br><span> #include <osmocom/vty/stats.h></span><br><span>@@ -1100,10 +1101,7 @@</span><br><span>  if (vty->type != VTY_FILE)</span><br><span>                vty_out(vty, "Changing PCU socket path at run-time has no effect%s", VTY_NEWLINE);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        if (bts->pcu_sock_path) {</span><br><span style="color: hsl(0, 100%, 40%);">-            talloc_free(bts->pcu_sock_path);</span><br><span style="color: hsl(0, 100%, 40%);">-     }</span><br><span style="color: hsl(0, 100%, 40%);">-       bts->pcu_sock_path = talloc_strdup(tall_pcu_ctx, argv[0]);</span><br><span style="color: hsl(120, 100%, 40%);">+ osmo_talloc_replace_string(tall_pcu_ctx, &bts->pcu_sock_path, argv[0]);</span><br><span> </span><br><span>   return CMD_SUCCESS;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/16346">change 16346</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-pcu/+/16346"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id09c7d24b48ddecfa96404c3e75330465a11f830 </div>
<div style="display:none"> Gerrit-Change-Number: 16346 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>