Whamcloud - gitweb
LU-2644 build: fix 'resource leak' errors
[fs/lustre-release.git] / lustre / mgc / mgc_request.c
index 0c2f107..4550de5 100644 (file)
@@ -1264,8 +1264,10 @@ static int mgc_apply_recover_logs(struct obd_device *mgc,
         } else {
                LASSERT(IS_MDT(lsi));
                rc = server_name2svname(lsi->lsi_svname, inst, NULL);
-               if (rc)
+               if (rc) {
+                       OBD_FREE(inst, CFS_PAGE_SIZE);
                        RETURN(-EINVAL);
+               }
                pos = strlen(inst);
         }