summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-03-01 15:12:19 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-03-01 15:12:19 +0100
commit1383525f1287365673591b6286034c74f3f213ff (patch)
tree7bc2a3195041211a81bc6df9fc519f2f36638b6c
parentd6764679ed3735714acae44c5cf529a9d047dc8b (diff)
downloadpianobar-1383525f1287365673591b6286034c74f3f213ff.tar.gz
pianobar-1383525f1287365673591b6286034c74f3f213ff.tar.bz2
pianobar-1383525f1287365673591b6286034c74f3f213ff.zip
Fix memory leak in station selector
-rw-r--r--src/ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index 84fbca1..9b0024a 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -161,6 +161,7 @@ PianoStation_t *BarUiSelectStation (PianoHandle_t *ph, const char *prompt) {
}
if (!BarReadlineInt (prompt, &i)) {
+ free (ss);
return NULL;
}
ssCurr = ss;