diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-07 08:10:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-07 08:10:02 +0000 |
commit | a450b22e92dc5030a144a48f10ebcfa2674e2f75 (patch) | |
tree | abd7234269a43eccdf22653c6480723d21da7c39 | |
parent | 0314e767e1176693641d857a444ca841d23e0554 (diff) | |
download | rtmux-a450b22e92dc5030a144a48f10ebcfa2674e2f75.tar.gz rtmux-a450b22e92dc5030a144a48f10ebcfa2674e2f75.tar.bz2 rtmux-a450b22e92dc5030a144a48f10ebcfa2674e2f75.zip |
Memory leak fix from Tiago Cunha.
-rw-r--r-- | cmd-source-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c index ab9a2399..900f7379 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -1,4 +1,4 @@ -/* $Id: cmd-source-file.c,v 1.2 2008-12-16 08:25:48 nicm Exp $ */ +/* $Id: cmd-source-file.c,v 1.3 2009-01-07 08:10:02 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org> @@ -96,6 +96,7 @@ cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx) if (load_cfg(data->path, &cause) != 0) { ctx->error(ctx, "%s", cause); + xfree(cause); return; } |