Potential memory leak with asprintf calls

Hi all,

I came across with potential memory leak with asprintf calls,
since asprintf calls are used upon series of if (condition) expression,
different strings are created with the asprintf call.

But the probelm is when the condition is checked for asprintf calls
for -1 the error I am trying to free the char pointer their also and also
out of the condition. Even though the potential memory leak
i am using gcc-4.4 and powerpc to run the application.

guidence needed

thanks
Jason