[#1376] fix double free in resource server
[#1376] fix double free in resource server

janiheikkinen/irods,PaulVanSchayck/irods,janiheikkinen/irods,PaulVanSchayck/irods,leesab/irods,janiheikkinen/irods,leesab/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,janiheikkinen/irods,janiheikkinen/irods,janiheikkinen/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,janiheikkinen/irods,leesab/irods,janiheikkinen/irods,leesab/irods,leesab/irods,PaulVanSchayck/irods,janiheikkinen/irods,leesab/irods,PaulVanSchayck/irods,leesab/irods,PaulVanSchayck/irods