Neels Hofmeyr has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/9937 )

Change subject: vty/command.c: talloc from tall_vty_cmd_ctx, not NULL
......................................................................

vty/command.c: talloc from tall_vty_cmd_ctx, not NULL

Change-Id: Iaa409b4f63557c8fb028bbb322b5e7253393c05c
---
M src/vty/command.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Pau Espin Pedrol: Looks good to me, approved



diff --git a/src/vty/command.c b/src/vty/command.c
index 66cf6a8..689609c 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -514,7 +514,7 @@
                }
        }

-       out = talloc_size(NULL, len + 1);
+       out = talloc_size(tall_vty_cmd_ctx, len + 1);
        if (!out)
                return NULL;

@@ -574,7 +574,7 @@
                }
        }

-       out = talloc_size(NULL, len + 1);
+       out = talloc_size(tall_vty_cmd_ctx, len + 1);
        if (!out)
                return NULL;

@@ -1317,7 +1317,7 @@
                return NULL;

        /* tmp will hold a string of len-2 chars, so 'len' size is fine */
-       tmp = talloc_size(NULL, len);
+       tmp = talloc_size(tall_vty_cmd_ctx, len);

        memcpy(tmp, (str + 1), len - 2);
        tmp[len - 2] = '\0';

--
To view, visit https://gerrit.osmocom.org/9937
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa409b4f63557c8fb028bbb322b5e7253393c05c
Gerrit-Change-Number: 9937
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <nhofm...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofm...@sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pes...@sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilira...@gmail.com>

Reply via email to