cgdb: Add patch to fix memory leak

This commit is contained in:
Nathan Owens 2018-12-30 13:21:34 -06:00 committed by Helmut Pozimski
parent 077a11406f
commit d973bd3cc5
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
--- lib/tgdb/tgdb.cpp.orig 2018-12-30 13:23:23.260656690 -0600
+++ lib/tgdb/tgdb.cpp 2018-12-30 13:24:33.484655276 -0600
@@ -1039,11 +1039,14 @@
request->choice.debugger_command.c);
break;
case TGDB_REQUEST_MODIFY_BREAKPOINT:
- command = tgdb_client_modify_breakpoint_call(tgdb,
+ str = tgdb_client_modify_breakpoint_call(tgdb,
request->choice.modify_breakpoint.file,
request->choice.modify_breakpoint.line,
request->choice.modify_breakpoint.addr,
request->choice.modify_breakpoint.b);
+ command = str;
+ free(str);
+ str = NULL;
break;
case TGDB_REQUEST_COMPLETE:
str = sys_aprintf("server interpreter-exec mi"

View file

@ -1,7 +1,7 @@
# Template file for 'cgdb'
pkgname=cgdb
version=0.7.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-installed-readline=${XBPS_CROSS_BASE}/usr ac_cv_rl_version=6.3"
hostmakedepends="flex help2man"