Skip to content

Commit 2a1df8c

Browse files
author
V V
committed
small fix
1 parent da66958 commit 2a1df8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎interface.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ tgl_peer_id_t parse_input_peer_id (const char *s, int l, int mask) {
494494
if (*s == '@') {
495495
s ++;
496496
l --;
497-
char *tmp = strndup (s, l);
497+
char *tmp = tstrndup (s, l);
498498
struct username_peer_pair *p = tree_lookup_username_peer_pair (username_peer_pair, (void *)&tmp);
499-
free (tmp);
499+
tfree_str (tmp);
500500
if (p && (!mask || tgl_get_peer_type (p->peer->id) == mask)) {
501501
return p->peer->id;
502502
} else {

0 commit comments

Comments
 (0)