diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-16 18:57:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-16 18:57:16 +0000 |
commit | 4573ef18691bb5492089265f335dc661aa9fc657 (patch) | |
tree | 1ccb43536eb1d250bdc79cfdbd649d841fde8b29 /cmd-command-prompt.c | |
parent | a4f5d127e2a444189cf8ae6bb57c53877e6b9a62 (diff) | |
download | rtmux-4573ef18691bb5492089265f335dc661aa9fc657.tar.gz rtmux-4573ef18691bb5492089265f335dc661aa9fc657.tar.bz2 rtmux-4573ef18691bb5492089265f335dc661aa9fc657.zip |
Memory leak.
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r-- | cmd-command-prompt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index c46d2dc7..6f0c8fc5 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-command-prompt.c,v 1.14 2009-02-13 18:57:55 nicm Exp $ */ +/* $Id: cmd-command-prompt.c,v 1.15 2009-02-16 18:57:16 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -112,8 +112,10 @@ cmd_command_prompt_callback(void *data, const char *s) char *cause, *ptr, *buf, ch; size_t len, slen; - if (s == NULL) + if (s == NULL) { + xfree(cdata); return (0); + } slen = strlen(s); len = 0; |