From d37ec4b473b4191f871a02fbb04d915a222ae5ba Mon Sep 17 00:00:00 2001 From: Monsta Date: Thu, 6 Nov 2014 13:26:30 +0300 Subject: don't leak memory --- applets/fish/fish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applets/fish') diff --git a/applets/fish/fish.c b/applets/fish/fish.c index 5ab04e09..d097d12d 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -1129,8 +1129,8 @@ static char* get_location(void) count++; if (count != 2) { - return NULL; g_free (buffer); + return NULL; } memcpy (location, &buffer [i + 2], len - i - 2); -- cgit v1.2.1