summaryrefslogtreecommitdiff
path: root/btt/aqd.c
diff options
context:
space:
mode:
Diffstat (limited to 'btt/aqd.c')
-rw-r--r--btt/aqd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/btt/aqd.c b/btt/aqd.c
index 3bb6f85..17ab15b 100644
--- a/btt/aqd.c
+++ b/btt/aqd.c
@@ -43,6 +43,8 @@ void *aqd_alloc(struct d_info *dip)
sprintf(oname, "%s_%s_aqd.dat", aqd_name, dip->dip_name);
if ((ap->fp = my_fopen(oname, "w")) == NULL) {
perror(oname);
+ free(oname);
+ free(ap);
return NULL;
}
add_file(ap->fp, oname);