From 0b680571ab8cbae244db4d62bb5723e0e2146407 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 13 Jun 2006 11:17:02 +0000 Subject: [PATCH] gst/gst.c: Free string. Original commit message from CVS: * gst/gst.c: (init_post): Free string. --- ChangeLog | 5 +++++ gst/gst.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index de1a601c00..b066e0fbfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-13 Edward Hervey + + * gst/gst.c: (init_post): + Free string. + 2006-06-13 Thomas Vander Stichele * gst/glib-compat-private.h: diff --git a/gst/gst.c b/gst/gst.c index a3b5c34529..c327f77e7e 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -630,6 +630,7 @@ init_post (void) pid = fork (); if (pid == -1) { GST_ERROR ("Failed to fork()"); + g_free (registry_file); return FALSE; } @@ -695,6 +696,7 @@ init_post (void) _gst_registry_remove_cache_plugins (default_registry); #ifdef HAVE_FORK + g_free (registry_file); /* need to use _exit, so that any exit handlers registered don't * bring down the main program */ _exit (0);