From 2a1df8cd99451b9860c24e38f6112073737eaa29 Mon Sep 17 00:00:00 2001 From: V V Date: Fri, 8 Jan 2016 16:25:59 +0300 Subject: [PATCH] small fix --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.c b/interface.c index 92bdbfe..f78619a 100644 --- a/interface.c +++ b/interface.c @@ -494,9 +494,9 @@ tgl_peer_id_t parse_input_peer_id (const char *s, int l, int mask) { if (*s == '@') { s ++; l --; - char *tmp = strndup (s, l); + char *tmp = tstrndup (s, l); struct username_peer_pair *p = tree_lookup_username_peer_pair (username_peer_pair, (void *)&tmp); - free (tmp); + tfree_str (tmp); if (p && (!mask || tgl_get_peer_type (p->peer->id) == mask)) { return p->peer->id; } else {