fix invalid free when making absolute path relative
fix invalid free when making absolute path relative

Patch by j-b-m and reformatted by me.

siddharudh/mlt,siddharudh/mlt,anba8005/mlt,siddharudh/mlt,zzhhui/mlt,mltframework/mlt,wideioltd/mlt,j-b-m/mlt,anba8005/mlt,siddharudh/mlt,mltframework/mlt,xzhavilla/mlt,mltframework/mlt,anba8005/mlt,zzhhui/mlt,mltframework/mlt,wideioltd/mlt,siddharudh/mlt,xzhavilla/mlt,wideioltd/mlt,j-b-m/mlt,gmarco/mlt-orig,siddharudh/mlt,siddharudh/mlt,siddharudh/mlt,wideioltd/mlt,j-b-m/mlt,gmarco/mlt-orig,j-b-m/mlt,zzhhui/mlt,xzhavilla/mlt,j-b-m/mlt,xzhavilla/mlt,mltframework/mlt,wideioltd/mlt,mltframework/mlt,j-b-m/mlt,gmarco/mlt-orig,j-b-m/mlt,gmarco/mlt-orig,gmarco/mlt-orig,xzhavilla/mlt,wideioltd/mlt,anba8005/mlt,j-b-m/mlt,siddharudh/mlt,xzhavilla/mlt,zzhhui/mlt,j-b-m/mlt,zzhhui/mlt,wideioltd/mlt,gmarco/mlt-orig,mltframework/mlt,anba8005/mlt,xzhavilla/mlt,zzhhui/mlt,gmarco/mlt-orig,mltframework/mlt,mltframework/mlt,anba8005/mlt,gmarco/mlt-orig,mltframework/mlt,zzhhui/mlt,anba8005/mlt,zzhhui/mlt,j-b-m/mlt,anba8005/mlt,zzhhui/mlt,anba8005/mlt,gmarco/mlt-orig,xzhavilla/mlt,wideioltd/mlt,wideioltd/mlt,xzhavilla/mlt