Browse Source

rr: free forgotten allocated local variable trans in case of error

Daniel-Constantin Mierla 11 years ago
parent
commit
ed60b891f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/rr/record.c

+ 1 - 0
modules/rr/record.c

@@ -714,6 +714,7 @@ static inline int build_advertised_rr(struct lump* _l, struct lump* _l2, str *_d
 	return 1;
 lump_err:
 	if (hdr) pkg_free(hdr);
+	if (trans) pkg_free(trans);
 	if (suffix) pkg_free(suffix);
 	if (term) pkg_free(term);
 	if (r2) pkg_free(r2);