Skip to content

Commit

Permalink
修复向非法会话发消息时的内存泄漏
Browse files Browse the repository at this point in the history
1. 修复想非法会话发送消息时的内存泄漏
2.

Signed-off-by: zhangl1 <zhangl1@kingnet.com>
  • Loading branch information
zhangl1 committed Oct 12, 2012
1 parent 538ca55 commit 8820140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SOFLAGS = -shared -Wl

LIBNAME = libevlite.so
SONAME = $(LIBNAME).3
REALNAME= $(LIBNAME).3.0.7
REALNAME= $(LIBNAME).3.0.8

OS = $(shell uname)

Expand Down
2 changes: 2 additions & 0 deletions src/iolayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ int32_t _send_direct( struct session_manager * manager, struct task_send * task
if ( session == NULL )
{
syslog(LOG_WARNING, "_send_direct(SID=%ld) failed, the Session is invalid .", task->id );

free( task->buf );
return -1;
}

Expand Down

0 comments on commit 8820140

Please sign in to comment.