X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=bin%2Fmpd-feeder;h=a170816bcfcc7acaf6ff3a07d0f7990534bd8edd;hb=9495a65bec714a18a6329b68b55567917bcc21f3;hp=4c2c537afc08aed1a00312eaf902d093ddb7fe9b;hpb=e9d1a8e0c47037748c217b37db55d9ca7576cc2a;p=mpd-feeder.git diff --git a/bin/mpd-feeder b/bin/mpd-feeder index 4c2c537..a170816 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -215,6 +215,8 @@ use Net::Async::MPD; my $sth = $db->prepare_cached("select $name from options"); $sth->execute; my @result = $sth->fetchrow_array; + $sth->finish; + undef $sth; return $result[0]; } @@ -353,6 +355,7 @@ SQL push @result, { song => $row[0], artist => $row[1], album => $row[2] }; } + undef $sth; return @result; }