mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix a memory leak in hstox interface
This commit is contained in:
parent
6e1a01bd16
commit
a403c996b5
|
@ -143,5 +143,9 @@ int method_cmp(char const *ptr, char const *expected, size_t max_size)
|
|||
}
|
||||
}
|
||||
|
||||
return memcmp(transformed, expected, max_size);
|
||||
int result = memcmp(transformed, expected, max_size);
|
||||
|
||||
free(transformed);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user