Fix another memleak

Use buffer_free instead of SAFE_FREE
This commit is contained in:
Aris Adamantiadis
2009-11-18 20:53:06 +01:00
parent e939786836
commit ca9f42a20f

View File

@@ -79,7 +79,7 @@ ssh_channel channel_new(ssh_session session) {
channel->stderr_buffer = buffer_new();
if (channel->stderr_buffer == NULL) {
SAFE_FREE(channel->stdout_buffer);
buffer_free(channel->stdout_buffer);
SAFE_FREE(channel);
return NULL;
}